Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -15,10 +15,10 @@ RUN apt-get update && apt-get install -y git
|
|
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
|
20 |
-
|
21 |
-
RUN sed -i 's/router.Group("/v1")/router.Group("/api/v1")/' /router/api-router.go
|
22 |
RUN go build -o /coze-discord-proxy
|
23 |
|
24 |
# 使用 Alpine 镜像作为最终镜像
|
|
|
15 |
# 复制整个项目并构建可执行文件
|
16 |
RUN git clone https://github.com/deanxv/coze-discord-proxy.git .
|
17 |
|
18 |
+
RUN sed -i 's|router.Group("/v1")|router.Group("/api/v1")|g' /router/api-router.go
|
19 |
+
|
20 |
#ENV GOPROXY=https://goproxy.cn,direct
|
21 |
RUN go mod download
|
|
|
|
|
22 |
RUN go build -o /coze-discord-proxy
|
23 |
|
24 |
# 使用 Alpine 镜像作为最终镜像
|