From 59eb978b5f0917957c37b5a985a5c30a1e675cc5 Mon Sep 17 00:00:00 2001 From: Prashanth Joseph Babu Date: Wed, 22 Aug 2018 17:47:16 +0530 Subject: [PATCH] 32bit support --- dockerfile/386/Dockerfile | 20 ++++++++++++++++++++ goreleaser.yml | 10 ++++++++++ 2 files changed, 30 insertions(+) create mode 100644 dockerfile/386/Dockerfile diff --git a/dockerfile/386/Dockerfile b/dockerfile/386/Dockerfile new file mode 100644 index 000000000..13b19e8e7 --- /dev/null +++ b/dockerfile/386/Dockerfile @@ -0,0 +1,20 @@ +# +# Alpine image to get some needed data +# +FROM alpine:latest as alpine +RUN apk add --no-cache \ + ca-certificates \ + tzdata + +# +# Image +# +FROM scratch +LABEL "com.centurylinklabs.watchtower"="true" + +# copy files from other containers +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"] \ No newline at end of file diff --git a/goreleaser.yml b/goreleaser.yml index 20c763e6c..a81dbf8fb 100644 --- a/goreleaser.yml +++ b/goreleaser.yml @@ -6,6 +6,7 @@ build: - windows goarch: - amd64 + - 386 - arm - arm64 archive: @@ -35,6 +36,15 @@ dockers: - containrrr/watchtower:{{ .Version }} binaries: - watchtower + - + goos: linux + goarch: 386 + goarm: '' + binary: watchtower + image: v2tec/watchtower + dockerfile: dockerfile/386/Dockerfile + tag_templates: + - '386-{{ .Version }}' - goos: linux goarch: arm