Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +1 -0
Dockerfile
CHANGED
@@ -9,6 +9,7 @@ RUN wget -qO- -t1 -T2 "https://api.github.com/repos/Calcium-Ion/new-api/releases
|
|
9 |
sed 's/\"//g;s/,//g;s/ //g' > VERSION
|
10 |
|
11 |
RUN sed -i'' 's|router.Group("/v1|router.Group("/ai/v1|g' /build/router/relay-router.go
|
|
|
12 |
RUN sed -i'' 's|HasPrefix(path, "/v1|HasPrefix(path, "/ai/v1|g' /build/relay/constant/relay_mode.go
|
13 |
|
14 |
WORKDIR /build/web
|
|
|
9 |
sed 's/\"//g;s/,//g;s/ //g' > VERSION
|
10 |
|
11 |
RUN sed -i'' 's|router.Group("/v1|router.Group("/ai/v1|g' /build/router/relay-router.go
|
12 |
+
RUN sed -i'' 's|RequestURI, "/v1|RequestURI, "/ai/v1|g' /build/router/web-router.go
|
13 |
RUN sed -i'' 's|HasPrefix(path, "/v1|HasPrefix(path, "/ai/v1|g' /build/relay/constant/relay_mode.go
|
14 |
|
15 |
WORKDIR /build/web
|