wIK5Ez2o commited on
Commit
66608c8
·
verified ·
1 Parent(s): 64c8703

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -31,8 +31,8 @@ RUN cp -r /src/* .
31
  COPY --from=builder /src/web/build ./web/build
32
 
33
  # fix
34
- RUN sed -i '/router.Group("/v1")/router.Group("/v1")\n relayV2Router := router.Group("/proxies/v1")/' router/relay.go
35
- RUN sed -i '/relayV1Router.POST("/completions",/relayV2Router.POST("/completions",/' router/relay.go
36
 
37
  RUN go build -trimpath -ldflags "-s -w -X 'github.com/songquanpeng/one-api/common.Version=$(cat VERSION)' -extldflags '-static'" -o one-api
38
 
 
31
  COPY --from=builder /src/web/build ./web/build
32
 
33
  # fix
34
+ RUN sed -i '/router.Group("\/v1")/router.Group("\/v1")\n relayV2Router := router.Group("\/proxies\/v1")/' router/relay.go
35
+ RUN sed -i '/relayV1Router.POST("\/completions",/relayV2Router.POST("\/completions",/' router/relay.go
36
 
37
  RUN go build -trimpath -ldflags "-s -w -X 'github.com/songquanpeng/one-api/common.Version=$(cat VERSION)' -extldflags '-static'" -o one-api
38