From 9d8446b6475e581a7b6b757de5a1534f0b6be8af Mon Sep 17 00:00:00 2001 From: Vincent Composieux Date: Sat, 1 Feb 2020 17:34:16 +0100 Subject: [PATCH] Moved Dockerfile go build to arch armv7 by default (fixes #13) --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b89b538..02f4ef7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,8 @@ RUN apk update && \ apk --no-cache add git alpine-sdk upx RUN GO111MODULE=on go mod vendor -RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags '-s -w' -o binary ./ -RUN upx -f --brute binary +RUN CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=7 go build -ldflags '-s -w' -o binary ./ +#RUN upx -f --brute binary FROM scratch