Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -9,8 +9,11 @@ ENV GO111MODULE=on \
|
|
| 9 |
# 设置工作目录
|
| 10 |
WORKDIR /build
|
| 11 |
|
|
|
|
|
|
|
|
|
|
| 12 |
# 复制整个项目并构建可执行文件
|
| 13 |
-
RUN
|
| 14 |
|
| 15 |
#ENV GOPROXY=https://goproxy.cn,direct
|
| 16 |
RUN go mod download
|
|
|
|
| 9 |
# 设置工作目录
|
| 10 |
WORKDIR /build
|
| 11 |
|
| 12 |
+
# 安装 git
|
| 13 |
+
RUN apt-get update && apt-get install -y git
|
| 14 |
+
|
| 15 |
# 复制整个项目并构建可执行文件
|
| 16 |
+
RUN git clone https://github.com/deanxv/coze-discord-proxy.git .
|
| 17 |
|
| 18 |
#ENV GOPROXY=https://goproxy.cn,direct
|
| 19 |
RUN go mod download
|