Skip to content

Commit 1c71f29

Browse files
author
dushixiang
committed
移除docker打包中的upx压缩
1 parent 5935554 commit 1c71f29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ WORKDIR /app
99
COPY . .
1010

1111
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
12-
RUN apk add upx
12+
RUN #apk add upx
1313
RUN go mod tidy
1414
RUN sh get_arch.sh
1515
RUN echo "Hello, my CPU architecture is $(uname -m)"
1616
RUN cp -r /app/web/build /app/server/resource/
1717
RUN go env;CGO_ENABLED=0 GOOS=linux GOARCH=$ARCH go build -ldflags '-s -w' -o next-terminal main.go
18-
RUN upx next-terminal
18+
RUN #upx next-terminal
1919

2020
FROM alpine:latest
2121

0 commit comments

Comments
 (0)