Update Dockerfile
Browse files- 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 |
-
#
|
|
|
|
| 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 |
# 构建前端
|