set GOARM=6 if GOARCH=arm

pull/778/head
hunterlong 2020-08-07 21:58:30 -07:00
parent 056cd0609e
commit 1af0cecf87
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ RUN go get github.com/stretchr/testify/assert && \
COPY . .
COPY --from=frontend /statping/dist/ ./source/dist/
RUN make clean generate embed
RUN if [ "$GOARCH" = "arm" ] ; then export GOARM=6; fi
RUN go build -a -ldflags "-s -w -extldflags -static -X main.VERSION=${VERSION} -X main.COMMIT=${COMMIT}" -o statping --tags "netgo linux" ./cmd
RUN chmod a+x statping && mv statping /go/bin/statping
# /go/bin/statping - statping binary