Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -8,8 +8,8 @@ RUN wget -qO- -t1 -T2 "https://api.github.com/repos/Calcium-Ion/new-api/releases
|
|
8 |
awk -F ":" '{print $2}' | \
|
9 |
sed 's/\"//g;s/,//g;s/ //g' > VERSION
|
10 |
|
11 |
-
RUN sed -i'' 's|router.Group("/v1|router.Group("/api/
|
12 |
-
RUN sed -i'' 's|HasPrefix(path, "/v1|HasPrefix(path, "/
|
13 |
|
14 |
WORKDIR /build/web
|
15 |
RUN npm install
|
|
|
8 |
awk -F ":" '{print $2}' | \
|
9 |
sed 's/\"//g;s/,//g;s/ //g' > VERSION
|
10 |
|
11 |
+
RUN sed -i'' 's|router.Group("/v1|router.Group("/api/ai|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
|
15 |
RUN npm install
|