修改打包命令
This commit is contained in:
parent
127d9ef6a1
commit
a3d2d4acc5
@ -13,7 +13,7 @@ RUN apk add gcc g++
|
|||||||
RUN go mod tidy
|
RUN go mod tidy
|
||||||
RUN sh get_arch.sh
|
RUN sh get_arch.sh
|
||||||
RUN echo "Hello, my CPU architecture is $(uname -m)"
|
RUN echo "Hello, my CPU architecture is $(uname -m)"
|
||||||
RUN go env;CGO_ENABLED=1 GOOS=linux GOARCH=$ARCH go build -ldflags '-s -w' -o next-terminal main.go
|
RUN go env;CGO_ENABLED=1 GOOS=linux GOARCH=$ARCH go build -a -ldflags '-linkmode external -extldflags "-static"' -o next-terminal main.go
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user