Add arm builds. Fixes #38

This commit is contained in:
Thom Seddon
2019-09-30 10:53:01 +01:00
parent a99330e6b2
commit 5dfd4f2878
3 changed files with 37 additions and 1 deletions

View File

@ -9,7 +9,7 @@ RUN apk add --no-cache git
# Copy & build
ADD . /go/src/github.com/thomseddon/traefik-forward-auth/
RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -a -installsuffix nocgo -o /traefik-forward-auth github.com/thomseddon/traefik-forward-auth/cmd
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -installsuffix nocgo -o /traefik-forward-auth github.com/thomseddon/traefik-forward-auth/cmd
# Copy into scratch container
FROM scratch