rr1 commited on
Commit
2ec46d7
·
verified ·
1 Parent(s): e465676

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -5,7 +5,8 @@ FROM golang AS builder
5
  ENV GO111MODULE=on \
6
  CGO_ENABLED=0 \
7
  GOOS=linux \
8
- TZ=Asia/Shanghai
 
9
 
10
  # 设置工作目录
11
  WORKDIR /build
@@ -16,8 +17,6 @@ RUN apt-get update && apt-get install -y git
16
  # 使用 git clone 获取源码
17
  RUN git clone https://github.com/renqabs/gsk2api.git .
18
 
19
- RUN sed -i 's|router.Group("/v1")|router.Group("/hf/v1")|' router/api-router.go
20
-
21
  # 下载依赖
22
  # ENV GOPROXY=https://goproxy.cn,direct
23
  RUN go mod download
 
5
  ENV GO111MODULE=on \
6
  CGO_ENABLED=0 \
7
  GOOS=linux \
8
+ TZ=Asia/Shanghai \
9
+ ROUTE_PREFIX=hf
10
 
11
  # 设置工作目录
12
  WORKDIR /build
 
17
  # 使用 git clone 获取源码
18
  RUN git clone https://github.com/renqabs/gsk2api.git .
19
 
 
 
20
  # 下载依赖
21
  # ENV GOPROXY=https://goproxy.cn,direct
22
  RUN go mod download