HuggingFace0920 commited on
Commit
71424e7
·
verified ·
1 Parent(s): 0bd2cb4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -9,7 +9,8 @@ RUN apk add --no-cache git make gcc musl-dev nodejs npm
9
  # 克隆 RustDesk API 仓库
10
  RUN git clone https://github.com/lejianwen/rustdesk-api.git .
11
 
12
- # 安装 Go 依赖
 
13
  RUN go mod tidy
14
 
15
  # 构建前端
 
9
  # 克隆 RustDesk API 仓库
10
  RUN git clone https://github.com/lejianwen/rustdesk-api.git .
11
 
12
+ # 复制 Go 模块文件并下载依赖(利用缓存)
13
+ COPY go.mod go.sum ./
14
  RUN go mod tidy
15
 
16
  # 构建前端