This commit is contained in:
parent
9133fb2f5b
commit
d67b35849d
@ -9,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 && up -9 app
|
RUN go build -ldflags="-s -w" -o app && upx -9 app
|
||||||
|
|
||||||
RUN ls -lh && chmod +x ./app
|
RUN ls -lh && chmod +x ./app
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user