From eb533eef289c7f7a5de351315c6fa5c33fbfdb20 Mon Sep 17 00:00:00 2001 From: Apoorv Parle <19315187+apparle@users.noreply.github.com> Date: Fri, 13 Jun 2025 05:35:10 -0700 Subject: [PATCH] Use watchtower image directly instead of building it Signed-off-by: Apoorv Parle <19315187+apparle@users.noreply.github.com> --- Containers/watchtower/Dockerfile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Containers/watchtower/Dockerfile b/Containers/watchtower/Dockerfile index 173ef09f..ad4dd4b4 100644 --- a/Containers/watchtower/Dockerfile +++ b/Containers/watchtower/Dockerfile @@ -1,11 +1,5 @@ # syntax=docker/dockerfile:latest -FROM golang:1.24.4-alpine3.21 AS go - -RUN set -ex; \ - apk upgrade --no-cache -a; \ - apk add --no-cache \ - build-base; \ - go install github.com/nicholas-fedor/watchtower@v1.11.3; +FROM ghcr.io/nicholas-fedor/watchtower:1.11.3 AS watchtower FROM alpine:3.21.3 @@ -13,7 +7,7 @@ RUN set -ex; \ apk upgrade --no-cache -a; \ apk add --no-cache bash ca-certificates tzdata -COPY --from=go /go/bin/watchtower /watchtower +COPY --from=watchtower /watchtower /watchtower COPY --chmod=775 start.sh /start.sh