Skip to content

Commit

Permalink
移除docker打包中的upx压缩
Browse files Browse the repository at this point in the history
  • Loading branch information
dushixiang committed Mar 29, 2022
1 parent 1456fd2 commit b06a947
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ WORKDIR /app
COPY . .

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

FROM alpine:latest

Expand Down

0 comments on commit b06a947

Please sign in to comment.