Update Dockerfile
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
@@ -9,13 +9,12 @@ ENV GO111MODULE=on \
|
|
9 |
# 设置工作目录
|
10 |
WORKDIR /build
|
11 |
|
12 |
-
#
|
13 |
-
|
|
|
14 |
#ENV GOPROXY=https://goproxy.cn,direct
|
15 |
RUN go mod download
|
16 |
|
17 |
-
# 复制整个项目并构建可执行文件
|
18 |
-
RUN apk add git && git clone https://github.com/deanxv/coze-discord-proxy.git .
|
19 |
RUN sed -i 's/router.Group("/v1")/router.Group("/api/v1")/' /router/api-router.go
|
20 |
RUN go build -o /coze-discord-proxy
|
21 |
|
|
|
9 |
# 设置工作目录
|
10 |
WORKDIR /build
|
11 |
|
12 |
+
# 复制整个项目并构建可执行文件
|
13 |
+
RUN apk add git && git clone https://github.com/deanxv/coze-discord-proxy.git .
|
14 |
+
|
15 |
#ENV GOPROXY=https://goproxy.cn,direct
|
16 |
RUN go mod download
|
17 |
|
|
|
|
|
18 |
RUN sed -i 's/router.Group("/v1")/router.Group("/api/v1")/' /router/api-router.go
|
19 |
RUN go build -o /coze-discord-proxy
|
20 |
|