🐳dockerfile更新
Some checks failed
continuous-integration/drone/tag Build is failing

This commit is contained in:
coward 2024-05-08 14:33:40 +08:00
parent e1902ad176
commit 9670ec8270

View File

@ -1,5 +1,7 @@
FROM golang:alpine as build FROM golang:alpine as build
RUN apk add upx
WORKDIR /build WORKDIR /build
COPY . . COPY . .
@ -7,7 +9,7 @@ COPY . .
ENV GO111MODULE=on ENV GO111MODULE=on
ENV GOPROXY=https://goproxy.cn,direct 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 RUN ls -lh && chmod +x ./app