We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fa34f7 commit 27d733bCopy full SHA for 27d733b
scripts/Dockerfile
@@ -1,16 +1,14 @@
1
FROM golang:1.19.3-alpine as builder
2
3
-RUN apk --no-cache add git ca-certificates gcc g++ upx
+RUN apk --no-cache add git ca-certificates gcc g++
4
5
WORKDIR /go/src/github.com/go-sonic/
6
7
RUN git clone --recursive --depth 1 https://github.com/go-sonic/sonic.git
8
9
WORKDIR /go/src/github.com/go-sonic/sonic
10
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
+RUN GOPROXY=https://goproxy.cn CGO_ENABLED=1 GOOS=linux go build -o sonic -ldflags="-s -w" -trimpath .
14
15
RUN mkdir -p /app/conf && \
16
mkdir /app/resources && \
0 commit comments