smgc commited on
Commit
d2db920
1 Parent(s): 2502119

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -2,7 +2,7 @@ FROM node:16 as builder
2
 
3
  WORKDIR /build
4
  RUN git clone https://github.com/MartialBE/one-api.git .
5
- RUN sed -i'' 's|router.Group("/v1|router.Group("/api/v1|g' /build/router/relay-router.go
6
 
7
  WORKDIR /build/web
8
  RUN npm install
@@ -16,7 +16,7 @@ ENV GO111MODULE=on \
16
 
17
  WORKDIR /build
18
  RUN git clone https://github.com/MartialBE/one-api.git .
19
- RUN sed -i'' 's|router.Group("/v1|router.Group("/api/v1|g' /build/router/relay-router.go
20
  RUN go mod download
21
  COPY --from=builder /build/web/build ./web/build
22
  RUN go build -ldflags "-s -w -X 'one-api/common.Version=$(cat VERSION)' -extldflags '-static'" -o one-api
 
2
 
3
  WORKDIR /build
4
  RUN git clone https://github.com/MartialBE/one-api.git .
5
+ RUN sed -i'' 's|router.Group("/v1|router.Group("/hf/v1|g' /build/router/relay-router.go
6
 
7
  WORKDIR /build/web
8
  RUN npm install
 
16
 
17
  WORKDIR /build
18
  RUN git clone https://github.com/MartialBE/one-api.git .
19
+ RUN sed -i'' 's|router.Group("/v1|router.Group("/hf/v1|g' /build/router/relay-router.go
20
  RUN go mod download
21
  COPY --from=builder /build/web/build ./web/build
22
  RUN go build -ldflags "-s -w -X 'one-api/common.Version=$(cat VERSION)' -extldflags '-static'" -o one-api