change go dockerfile
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
# 使用官方的 Go 运行时作为基础镜像
|
||||
FROM golang:latest AS builder
|
||||
|
||||
ENV GO111MODULE=on \
|
||||
CGO_ENABLED=0 \
|
||||
GOOS=linux \
|
||||
GOARCH=amd64 \
|
||||
GOPROXY=https://goproxy.cn,direct
|
||||
# 设置工作目录
|
||||
WORKDIR /app
|
||||
|
||||
|
||||
Reference in New Issue
Block a user