🎨 修改Dockerfile
This commit is contained in:
parent
2728a32064
commit
e40e23f091
@ -1,4 +1,4 @@
|
||||
FROM golang:alpine as builder
|
||||
FROM dockerproxy.com/library/golang:alpine as builder
|
||||
|
||||
WORKDIR /go/src/miniapp
|
||||
COPY . .
|
||||
@ -10,7 +10,7 @@ RUN go env -w GO111MODULE=on \
|
||||
&& go mod tidy \
|
||||
&& go build -o server .
|
||||
|
||||
FROM alpine:latest
|
||||
FROM dockerproxy.com/library/alpine:latest
|
||||
WORKDIR /go/src/miniapp
|
||||
|
||||
COPY --from=0 /go/src/miniapp/server ./
|
||||
|
Loading…
Reference in New Issue
Block a user