Skip to content

Commit 27d733b

Browse files
13791379
authored andcommitted
chore: remove upx when build docker image
1 parent 2fa34f7 commit 27d733b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

scripts/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
FROM golang:1.19.3-alpine as builder
22

3-
RUN apk --no-cache add git ca-certificates gcc g++ upx
3+
RUN apk --no-cache add git ca-certificates gcc g++
44

55
WORKDIR /go/src/github.com/go-sonic/
66

77
RUN git clone --recursive --depth 1 https://github.com/go-sonic/sonic.git
88

99
WORKDIR /go/src/github.com/go-sonic/sonic
1010

11-
RUN GOPROXY=https://goproxy.cn CGO_ENABLED=1 GOOS=linux go build -o sonic -ldflags="-s -w" -trimpath . && \
12-
upx sonic -o upx_sonic && \
13-
mv -f upx_sonic sonic
11+
RUN GOPROXY=https://goproxy.cn CGO_ENABLED=1 GOOS=linux go build -o sonic -ldflags="-s -w" -trimpath .
1412

1513
RUN mkdir -p /app/conf && \
1614
mkdir /app/resources && \

0 commit comments

Comments
 (0)