🎨 修改dockerfile

This commit is contained in:
loser 2024-03-31 04:15:39 +08:00
parent f2fd54a879
commit b132fa9295

View File

@ -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
COPY . .
@ -10,7 +10,7 @@ RUN go env -w GO111MODULE=on \
&& go mod tidy \
&& 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
COPY --from=0 /go/src/miniapp/server ./