mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
Use watchtower image directly instead of building it
Signed-off-by: Apoorv Parle <19315187+apparle@users.noreply.github.com>
This commit is contained in:
parent
ee23d43ca7
commit
eb533eef28
1 changed files with 2 additions and 8 deletions
|
|
@ -1,11 +1,5 @@
|
||||||
# syntax=docker/dockerfile:latest
|
# syntax=docker/dockerfile:latest
|
||||||
FROM golang:1.24.4-alpine3.21 AS go
|
FROM ghcr.io/nicholas-fedor/watchtower:1.11.3 AS watchtower
|
||||||
|
|
||||||
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 alpine:3.21.3
|
FROM alpine:3.21.3
|
||||||
|
|
||||||
|
|
@ -13,7 +7,7 @@ RUN set -ex; \
|
||||||
apk upgrade --no-cache -a; \
|
apk upgrade --no-cache -a; \
|
||||||
apk add --no-cache bash ca-certificates tzdata
|
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
|
COPY --chmod=775 start.sh /start.sh
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue