2024-02-16 16:21:18 +01:00
|
|
|
# syntax=docker/dockerfile:latest
|
2025-03-26 18:27:44 +01:00
|
|
|
FROM golang:1.24.1-alpine3.21 AS go
|
|
|
|
|
|
|
|
|
|
RUN set -ex; \
|
2025-03-26 18:39:32 +01:00
|
|
|
apk upgrade --no-cache -a; \
|
2025-03-26 18:27:44 +01:00
|
|
|
apk add --no-cache \
|
|
|
|
|
build-base; \
|
|
|
|
|
go install github.com/containrrr/watchtower@76f9cea516593fabb8ca91ff13de55caa6aa0a8b;
|
2021-11-30 11:20:42 +01:00
|
|
|
|
2025-02-17 05:01:02 +00:00
|
|
|
FROM alpine:3.21.3
|
2021-11-30 11:20:42 +01:00
|
|
|
|
2024-09-17 10:35:54 +02:00
|
|
|
RUN set -ex; \
|
|
|
|
|
apk upgrade --no-cache -a; \
|
2025-03-26 18:27:44 +01:00
|
|
|
apk add --no-cache bash ca-certificates tzdata
|
2024-04-17 17:52:42 +02:00
|
|
|
|
2025-03-31 11:03:43 +02:00
|
|
|
COPY --from=go /go/bin/watchtower /watchtower
|
2021-11-30 11:20:42 +01:00
|
|
|
|
2023-05-03 17:35:14 +02:00
|
|
|
COPY --chmod=775 start.sh /start.sh
|
2021-11-30 11:20:42 +01:00
|
|
|
|
2023-08-23 16:06:17 +02:00
|
|
|
# hadolint ignore=DL3002
|
2023-06-03 14:56:05 +02:00
|
|
|
USER root
|
|
|
|
|
|
2021-11-30 11:20:42 +01:00
|
|
|
ENTRYPOINT ["/start.sh"]
|
2023-06-26 00:56:08 +02:00
|
|
|
LABEL com.centurylinklabs.watchtower.enable="false"
|