1
0
mirror of https://github.com/containrrr/watchtower.git synced 2025-01-29 18:53:51 +02:00
watchtower/dockerfiles/Dockerfile
nils måsén d0943c3b77
chore(ci): set image platform on image build (#811)
Co-authored-by: Simon Aronsson <simme@arcticbit.se>
2021-02-04 11:30:56 +01:00

21 lines
404 B
Docker

FROM --platform=$BUILDPLATFORM alpine:3.11 as alpine
RUN apk add --no-cache \
ca-certificates \
tzdata
FROM scratch
LABEL "com.centurylinklabs.watchtower"="true"
COPY --from=alpine \
/etc/ssl/certs/ca-certificates.crt \
/etc/ssl/certs/ca-certificates.crt
COPY --from=alpine \
/usr/share/zoneinfo \
/usr/share/zoneinfo
EXPOSE 8080
COPY watchtower /
ENTRYPOINT ["/watchtower"]