Actualizador de imagenes watchtower https://containrrr.github.io/watchtower/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
watchtower/Dockerfile

24 lines
720 B

FROM registry.sindominio.net/debian as builder
ARG WATCHTOWER_VERSION=main
RUN apt-get update && \
apt-get install -y git golang tzdata
RUN git clone --branch "${WATCHTOWER_VERSION}" https://github.com/containrrr/watchtower.git
RUN \
cd watchtower && \
GO111MODULE=on CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' . && \
GO111MODULE=on go test ./... -v
FROM scratch
LABEL "com.centurylinklabs.watchtower"="true"
# copy files from other container
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
COPY --from=builder /watchtower/watchtower /watchtower
ENTRYPOINT ["/watchtower"]