From db08dd722bee084c9a63764de2c4ef506f12ec30 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 0000000..13b19e8 --- /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 fed2baa..8d75f66 100644 --- a/goreleaser.yml +++ b/goreleaser.yml @@ -16,6 +16,7 @@ build: # Defaults are 386 and amd64 goarch: - amd64 + - 386 - arm - arm64 @@ -62,6 +63,15 @@ dockers: dockerfile: dockerfile/amd64/Dockerfile tag_templates: - '{{ .Version }}' + - + goos: linux + goarch: 386 + goarm: '' + binary: watchtower + image: v2tec/watchtower + dockerfile: dockerfile/386/Dockerfile + tag_templates: + - '386-{{ .Version }}' - goos: linux goarch: arm