This commit is contained in:
parent
e1902ad176
commit
9670ec8270
@ -1,5 +1,7 @@
|
||||
FROM golang:alpine as build
|
||||
|
||||
RUN apk add upx
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
COPY . .
|
||||
@ -7,7 +9,7 @@ COPY . .
|
||||
ENV GO111MODULE=on
|
||||
ENV GOPROXY=https://goproxy.cn,direct
|
||||
|
||||
RUN go mod download && go build -o app
|
||||
RUN go mod download && go build -o app && upx -9 app
|
||||
|
||||
RUN ls -lh && chmod +x ./app
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user