all-in-one/Containers/watchtower/Dockerfile

28 lines
683 B
Text
Raw Normal View History

# syntax=docker/dockerfile:latest
FROM golang:1.25.3-alpine3.22 AS go
ENV WATCHTOWER_COMMIT_HASH=9130559da17f882f2db4dbc2a3ed0425f41f25e4 # v1.12.1
RUN set -ex; \
apk upgrade --no-cache -a; \
apk add --no-cache \
build-base; \
go install github.com/nicholas-fedor/watchtower@$WATCHTOWER_COMMIT_HASH;
2021-11-30 11:20:42 +01:00
FROM alpine:3.22.2
2021-11-30 11:20:42 +01:00
RUN set -ex; \
apk upgrade --no-cache -a; \
apk add --no-cache bash ca-certificates tzdata
COPY --from=go /go/bin/watchtower /watchtower
2021-11-30 11:20:42 +01:00
COPY --chmod=775 start.sh /start.sh
2021-11-30 11:20:42 +01:00
# hadolint ignore=DL3002
USER root
2021-11-30 11:20:42 +01:00
ENTRYPOINT ["/start.sh"]
LABEL com.centurylinklabs.watchtower.enable="false" \
org.label-schema.vendor="Nextcloud"