🎨 修改dockerfile
This commit is contained in:
parent
f2fd54a879
commit
b132fa9295
@ -1,4 +1,4 @@
|
|||||||
FROM registry.cn-hangzhou.aliyuncs.com/hyxc/golang:alpine-1.18 as builder
|
FROM 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 registry.cn-hangzhou.aliyuncs.com/hyxc/alpine:3.13.6 as runner
|
FROM code.hyxc1.com/open/alpine:3.16.0 as runner
|
||||||
WORKDIR /go/src/miniapp
|
WORKDIR /go/src/miniapp
|
||||||
|
|
||||||
COPY --from=0 /go/src/miniapp/server ./
|
COPY --from=0 /go/src/miniapp/server ./
|
||||||
|
Loading…
Reference in New Issue
Block a user