mirror of https://github.com/statping/statping
set GOARM=6 if GOARCH=arm
parent
056cd0609e
commit
1af0cecf87
|
@ -38,6 +38,7 @@ RUN go get github.com/stretchr/testify/assert && \
|
||||||
COPY . .
|
COPY . .
|
||||||
COPY --from=frontend /statping/dist/ ./source/dist/
|
COPY --from=frontend /statping/dist/ ./source/dist/
|
||||||
RUN make clean generate embed
|
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 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
|
RUN chmod a+x statping && mv statping /go/bin/statping
|
||||||
# /go/bin/statping - statping binary
|
# /go/bin/statping - statping binary
|
||||||
|
|
Loading…
Reference in New Issue