Update Dockerfile
Browse files- Dockerfile +2 -6
Dockerfile
CHANGED
@@ -3,14 +3,10 @@
|
|
3 |
FROM golang:alpine AS builder
|
4 |
|
5 |
# 添加 git,以便之后能从GitHub克隆项目
|
6 |
-
RUN apk --no-cache add git
|
7 |
|
8 |
# 从 GitHub 克隆 go-proxy-bingai 项目到 /workspace/app 目录下
|
9 |
-
|
10 |
-
RUN wget -O app.zip https://github.com/Harry-zklcdc/go-proxy-bingai/archive/refs/tags/v1.11.5.zip && \
|
11 |
-
unzip app.zip && \
|
12 |
-
mv go-proxy-bingai-1.11.5 app && \
|
13 |
-
rm app.zip
|
14 |
|
15 |
# 设置工作目录为之前克隆的项目目录
|
16 |
WORKDIR /workspace/app
|
|
|
3 |
FROM golang:alpine AS builder
|
4 |
|
5 |
# 添加 git,以便之后能从GitHub克隆项目
|
6 |
+
RUN apk --no-cache add git
|
7 |
|
8 |
# 从 GitHub 克隆 go-proxy-bingai 项目到 /workspace/app 目录下
|
9 |
+
RUN git clone https://github.com/Harry-zklcdc/go-proxy-bingai.git /workspace/app
|
|
|
|
|
|
|
|
|
10 |
|
11 |
# 设置工作目录为之前克隆的项目目录
|
12 |
WORKDIR /workspace/app
|