Selinore commited on
Commit
174402a
·
verified ·
1 Parent(s): c9462a4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
  # 使用官方Golang镜像
2
- FROM golang:1.18-alpine AS build
3
 
4
  # 安装git
5
  RUN apk add --no-cache git
@@ -10,6 +10,9 @@ WORKDIR /app
10
  # 克隆项目仓库
11
  RUN git clone https://github.com/jianglinzhang/claude2api.git .
12
 
 
 
 
13
  # 下载依赖
14
  RUN go mod download
15
 
 
1
  # 使用官方Golang镜像
2
+ FROM golang:1.23-alpine AS build
3
 
4
  # 安装git
5
  RUN apk add --no-cache git
 
10
  # 克隆项目仓库
11
  RUN git clone https://github.com/jianglinzhang/claude2api.git .
12
 
13
+ # Copy go.mod and go.sum files first for better caching
14
+ # COPY go.mod go.sum* ./
15
+
16
  # 下载依赖
17
  RUN go mod download
18