2023-12-11 20:12:37 +01:00
|
|
|
FROM --platform=$BUILDPLATFORM alpine:3.19.0 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"
|
2024-02-04 11:32:54 +01:00
|
|
|
LABEL "org.opencontainers.image.url"="https://containrrr.dev/watchtower/" \
|
|
|
|
|
"org.opencontainers.image.documentation"="https://containrrr.dev/watchtower/" \
|
|
|
|
|
"org.opencontainers.image.source"="https://github.com/containrrr/watchtower" \
|
|
|
|
|
"org.opencontainers.image.licenses"="Apache-2.0" \
|
|
|
|
|
# unsure about capitalization
|
|
|
|
|
"org.opencontainers.image.title"="watchtower" \
|
2024-02-04 12:08:06 +01:00
|
|
|
"org.opencontainers.image.description"="A process for automating Docker container base image updates." \
|
2024-02-04 11:32:54 +01:00
|
|
|
# The version might be forgotten. The version could be extraced into a `ARG` before the initial `FROM` or removed.
|
|
|
|
|
"org.opencontainers.image.base.name"="alpine:3.19.0"
|
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"]
|