🎨 修改Dockerfile

This commit is contained in:
loser 2024-07-03 17:15:53 +08:00
parent 2728a32064
commit e40e23f091

View File

@ -1,4 +1,4 @@
FROM golang:alpine as builder FROM dockerproxy.com/library/golang:alpine as builder
WORKDIR /go/src/miniapp WORKDIR /go/src/miniapp
COPY . . COPY . .
@ -10,7 +10,7 @@ RUN go env -w GO111MODULE=on \
&& go mod tidy \ && go mod tidy \
&& go build -o server . && go build -o server .
FROM alpine:latest FROM dockerproxy.com/library/alpine:latest
WORKDIR /go/src/miniapp WORKDIR /go/src/miniapp
COPY --from=0 /go/src/miniapp/server ./ COPY --from=0 /go/src/miniapp/server ./