2025-02-08 11:22:50 -07:00
|
|
|
ARG BASE_IMAGE=alpine:3.21.2
|
|
|
|
|
|
|
|
|
|
FROM --platform=$BUILDPLATFORM $BASE_IMAGE as alpine
|
2019-04-10 21:48:31 +02:00
|
|
|
|
2018-03-02 14:23:57 +01:00
|
|
|
RUN apk add --no-cache \
|
|
|
|
|
ca-certificates \
|
|
|
|
|
tzdata
|
|
|
|
|
|
|
|
|
|
FROM scratch
|
2017-12-27 07:35:25 +01:00
|
|
|
LABEL "com.centurylinklabs.watchtower"="true"
|
2025-02-08 11:22:50 -07:00
|
|
|
LABEL "org.opencontainers.image.url"="https://nicholas-fedor.github.io/watchtower/" \
|
|
|
|
|
"org.opencontainers.image.documentation"="https://nicholas-fedor.github.io/watchtower/" \
|
|
|
|
|
"org.opencontainers.image.source"="https://github.com/nicholas-fedor/watchtower" \
|
|
|
|
|
"org.opencontainers.image.licenses"="Apache-2.0" \
|
|
|
|
|
"org.opencontainers.image.title"="Watchtower" \
|
|
|
|
|
"org.opencontainers.image.description"="A process for automating Docker container base image updates." \
|
|
|
|
|
"org.opencontainers.image.base.name"="$BASE_IMAGE"
|
2018-03-02 14:23:57 +01:00
|
|
|
|
2019-04-10 21:48:31 +02:00
|
|
|
COPY --from=alpine \
|
|
|
|
|
/etc/ssl/certs/ca-certificates.crt \
|
|
|
|
|
/etc/ssl/certs/ca-certificates.crt
|
|
|
|
|
COPY --from=alpine \
|
|
|
|
|
/usr/share/zoneinfo \
|
|
|
|
|
/usr/share/zoneinfo
|
2018-03-02 14:23:57 +01:00
|
|
|
|
2020-04-20 11:17:14 -03:00
|
|
|
EXPOSE 8080
|
|
|
|
|
|
2017-12-27 07:35:25 +01:00
|
|
|
COPY watchtower /
|
2023-09-16 21:10:00 +02:00
|
|
|
|
|
|
|
|
HEALTHCHECK CMD [ "/watchtower", "--health-check"]
|
|
|
|
|
|
2020-01-10 01:17:42 +05:30
|
|
|
ENTRYPOINT ["/watchtower"]
|