2021-11-30 18:20:42 +08:00
|
|
|
# From https://github.com/containrrr/watchtower/blob/main/dockerfiles/Dockerfile.self-contained
|
2023-01-30 20:16:45 +08:00
|
|
|
FROM containrrr/watchtower:1.5.3 as watchtower
|
2021-11-30 18:20:42 +08:00
|
|
|
|
2023-02-13 21:04:15 +08:00
|
|
|
FROM alpine:3.17.2
|
2021-11-30 18:20:42 +08:00
|
|
|
|
2023-01-16 01:22:31 +08:00
|
|
|
RUN apk add --no-cache bash
|
2021-11-30 18:20:42 +08:00
|
|
|
COPY --from=watchtower /watchtower /
|
|
|
|
|
|
|
|
COPY start.sh /
|
|
|
|
RUN chmod +x /start.sh
|
|
|
|
|
2021-12-03 19:14:39 +08:00
|
|
|
USER root
|
2021-11-30 18:20:42 +08:00
|
|
|
ENTRYPOINT ["/start.sh"]
|
2023-01-30 22:33:12 +08:00
|
|
|
LABEL com.centurylinklabs.watchtower.monitor-only="true"
|