1 Star 0 Fork 89

郭琦/Copilot后端代理服务

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 629 Bytes
一键复制 编辑 原始数据 按行查看 历史
# 使用官方 Golang 镜像作为构建环境
FROM golang:alpine AS builder
# 设置工作目录
WORKDIR /app
# 复制 go mod 和 sum 文件
COPY go.mod go.sum ./
# 下载依赖
RUN go mod download
# 复制源代码
COPY . .
# 构建应用
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .
# 使用轻量级的 alpine 镜像
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /root/
# 从 builder 阶段复制构建的二进制文件
COPY --from=builder /app/main .
COPY .env.example .env
# 暴露端口(如果你的应用需要的话)
EXPOSE 11110
# 运行应用
CMD ["./main"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/GuoQi1868/github-copilot-proxies.git
git@gitee.com:GuoQi1868/github-copilot-proxies.git
GuoQi1868
github-copilot-proxies
Copilot后端代理服务
master

搜索帮助