sfun commited on
Commit
2b4a49c
1 Parent(s): c2ea55a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -9,13 +9,12 @@ ENV GO111MODULE=on \
9
  # 设置工作目录
10
  WORKDIR /build
11
 
12
- # 复制 go.mod 和 go.sum 文件,先下载依赖
13
- COPY go.mod go.sum ./
 
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