Moved Dockerfile go build to arch armv7 by default (fixes #13)
This commit is contained in:
parent
267aaea1a8
commit
9d8446b647
1 changed files with 2 additions and 2 deletions
|
@ -7,8 +7,8 @@ RUN apk update && \
|
||||||
apk --no-cache add git alpine-sdk upx
|
apk --no-cache add git alpine-sdk upx
|
||||||
|
|
||||||
RUN GO111MODULE=on go mod vendor
|
RUN GO111MODULE=on go mod vendor
|
||||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags '-s -w' -o binary ./
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=7 go build -ldflags '-s -w' -o binary ./
|
||||||
RUN upx -f --brute binary
|
#RUN upx -f --brute binary
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue