2024-02-16 23:21:18 +08:00
|
|
|
# syntax=docker/dockerfile:latest
|
2021-11-30 18:20:42 +08:00
|
|
|
# From https://github.com/containrrr/watchtower/blob/main/dockerfiles/Dockerfile.self-contained
|
2024-06-21 19:16:55 +08:00
|
|
|
FROM containrrr/watchtower:1.7.1 AS watchtower
|
2021-11-30 18:20:42 +08:00
|
|
|
|
2024-09-09 20:40:01 +08:00
|
|
|
FROM alpine:3.20.3
|
2021-11-30 18:20:42 +08:00
|
|
|
|
2024-04-17 23:52:42 +08:00
|
|
|
RUN apk upgrade --no-cache -a; \
|
|
|
|
apk add --no-cache bash
|
|
|
|
|
2023-05-03 22:38:40 +08:00
|
|
|
COPY --from=watchtower /watchtower /watchtower
|
2021-11-30 18:20:42 +08:00
|
|
|
|
2023-05-03 23:35:14 +08:00
|
|
|
COPY --chmod=775 start.sh /start.sh
|
2021-11-30 18:20:42 +08:00
|
|
|
|
2023-08-23 22:06:17 +08:00
|
|
|
# hadolint ignore=DL3002
|
2023-06-03 20:56:05 +08:00
|
|
|
USER root
|
|
|
|
|
2021-11-30 18:20:42 +08:00
|
|
|
ENTRYPOINT ["/start.sh"]
|
2023-06-26 06:56:08 +08:00
|
|
|
LABEL com.centurylinklabs.watchtower.enable="false"
|