mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-21 21:30:48 +02:00
reduce to one dockerfile as they have the exact same content
This commit is contained in:
parent
6532920d4b
commit
1f9099770b
5 changed files with 11 additions and 53 deletions
|
@ -1,4 +1,5 @@
|
||||||
FROM alpine:latest as alpine
|
FROM alpine:latest as alpine
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
tzdata
|
tzdata
|
||||||
|
@ -6,8 +7,12 @@ RUN apk add --no-cache \
|
||||||
FROM scratch
|
FROM scratch
|
||||||
LABEL "com.centurylinklabs.watchtower"="true"
|
LABEL "com.centurylinklabs.watchtower"="true"
|
||||||
|
|
||||||
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
COPY --from=alpine \
|
||||||
COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo
|
/etc/ssl/certs/ca-certificates.crt \
|
||||||
|
/etc/ssl/certs/ca-certificates.crt
|
||||||
|
COPY --from=alpine \
|
||||||
|
/usr/share/zoneinfo \
|
||||||
|
/usr/share/zoneinfo
|
||||||
|
|
||||||
COPY watchtower /
|
COPY watchtower /
|
||||||
ENTRYPOINT ["/watchtower"]
|
ENTRYPOINT ["/watchtower"]
|
|
@ -1,13 +0,0 @@
|
||||||
FROM alpine:latest as alpine
|
|
||||||
RUN apk add --no-cache \
|
|
||||||
ca-certificates \
|
|
||||||
tzdata
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
LABEL "com.centurylinklabs.watchtower"="true"
|
|
||||||
|
|
||||||
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
|
||||||
COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo
|
|
||||||
|
|
||||||
COPY watchtower /
|
|
||||||
ENTRYPOINT ["/watchtower"]
|
|
|
@ -1,13 +0,0 @@
|
||||||
FROM alpine:latest as alpine
|
|
||||||
RUN apk add --no-cache \
|
|
||||||
ca-certificates \
|
|
||||||
tzdata
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
LABEL "com.centurylinklabs.watchtower"="true"
|
|
||||||
|
|
||||||
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
|
||||||
COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo
|
|
||||||
|
|
||||||
COPY watchtower /
|
|
||||||
ENTRYPOINT ["/watchtower"]
|
|
|
@ -1,13 +0,0 @@
|
||||||
FROM alpine:latest as alpine
|
|
||||||
RUN apk add --no-cache \
|
|
||||||
ca-certificates \
|
|
||||||
tzdata
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
LABEL "com.centurylinklabs.watchtower"="true"
|
|
||||||
|
|
||||||
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
|
||||||
COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo
|
|
||||||
|
|
||||||
COPY watchtower /
|
|
||||||
ENTRYPOINT ["/watchtower"]
|
|
|
@ -29,9 +29,7 @@ dockers:
|
||||||
goos: linux
|
goos: linux
|
||||||
goarch: amd64
|
goarch: amd64
|
||||||
goarm: ''
|
goarm: ''
|
||||||
dockerfile: dockerfile/amd64/Dockerfile
|
dockerfile: Dockerfile
|
||||||
build_flag_templates:
|
|
||||||
- "--label=com.centurylinklabs.watchtower=true"
|
|
||||||
image_templates:
|
image_templates:
|
||||||
- containrrr/watchtower:{{ .Version }}
|
- containrrr/watchtower:{{ .Version }}
|
||||||
binaries:
|
binaries:
|
||||||
|
@ -40,9 +38,7 @@ dockers:
|
||||||
goos: linux
|
goos: linux
|
||||||
goarch: 386
|
goarch: 386
|
||||||
goarm: ''
|
goarm: ''
|
||||||
dockerfile: dockerfile/i386/Dockerfile
|
dockerfile: Dockerfile
|
||||||
build_flag_templates:
|
|
||||||
- "--label=com.centurylinklabs.watchtower=true"
|
|
||||||
image_templates:
|
image_templates:
|
||||||
- containrrr/watchtower:i386-{{ .Version }}
|
- containrrr/watchtower:i386-{{ .Version }}
|
||||||
binaries:
|
binaries:
|
||||||
|
@ -51,9 +47,7 @@ dockers:
|
||||||
goos: linux
|
goos: linux
|
||||||
goarch: arm
|
goarch: arm
|
||||||
goarm: 6
|
goarm: 6
|
||||||
dockerfile: dockerfile/armhf/Dockerfile
|
dockerfile: Dockerfile
|
||||||
build_flag_templates:
|
|
||||||
- "--label=com.centurylinklabs.watchtower=true"
|
|
||||||
image_templates:
|
image_templates:
|
||||||
- containrrr/watchtower:armhf-{{ .Version }}
|
- containrrr/watchtower:armhf-{{ .Version }}
|
||||||
binaries:
|
binaries:
|
||||||
|
@ -62,9 +56,7 @@ dockers:
|
||||||
goos: linux
|
goos: linux
|
||||||
goarch: arm64
|
goarch: arm64
|
||||||
goarm: ''
|
goarm: ''
|
||||||
dockerfile: dockerfile/arm64v8/Dockerfile
|
dockerfile: Dockerfile
|
||||||
build_flag_templates:
|
|
||||||
- "--label=com.centurylinklabs.watchtower=true"
|
|
||||||
image_templates:
|
image_templates:
|
||||||
- containrrr/watchtower:arm64v8-{{ .Version }}
|
- containrrr/watchtower:arm64v8-{{ .Version }}
|
||||||
binaries:
|
binaries:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue