Update Dockerfile
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
@@ -36,7 +36,7 @@ RUN sed -i 's/Eof/\n relayV2Router.Use(middleware.RelayPanicRecover(), middlewar
|
|
36 |
RUN sed -i 's/Eof/\n relayV2Router.GET("\/models", controller.ListModels)\n relayV2Router.GET("\/models\/:model", controller.RetrieveModel)Eof/g' router/relay.go
|
37 |
RUN sed -i 's/Eof/\n relayV2Router.POST("\/chat\/completions", controller.Relay) }/g' router/relay.go
|
38 |
RUN sed -i 's/if strings.HasPrefix(path, "\/v1\/chat\/completions") {/if strings.Contains(path, "\/v1\/chat\/completions") {/g' relay/relaymode/helper.go
|
39 |
-
|
40 |
RUN go build -trimpath -ldflags "-s -w -X 'github.com/songquanpeng/one-api/common.Version=$(cat VERSION)' -extldflags '-static'" -o one-api
|
41 |
|
42 |
FROM alpine
|
|
|
36 |
RUN sed -i 's/Eof/\n relayV2Router.GET("\/models", controller.ListModels)\n relayV2Router.GET("\/models\/:model", controller.RetrieveModel)Eof/g' router/relay.go
|
37 |
RUN sed -i 's/Eof/\n relayV2Router.POST("\/chat\/completions", controller.Relay) }/g' router/relay.go
|
38 |
RUN sed -i 's/if strings.HasPrefix(path, "\/v1\/chat\/completions") {/if strings.Contains(path, "\/v1\/chat\/completions") {/g' relay/relaymode/helper.go
|
39 |
+
RUN cat router/relay.go
|
40 |
RUN go build -trimpath -ldflags "-s -w -X 'github.com/songquanpeng/one-api/common.Version=$(cat VERSION)' -extldflags '-static'" -o one-api
|
41 |
|
42 |
FROM alpine
|