🎨 修改dockerfile
This commit is contained in:
		@@ -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 ./
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user