Spaces:
Paused
Paused
Update Dockerfile
#1
by
lihao001
- opened
- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -11,6 +11,7 @@ ADD utils.js src/
|
|
| 11 |
RUN yarn config set registry https://registry.npmmirror.com/
|
| 12 |
RUN yarn
|
| 13 |
|
| 14 |
-
|
|
|
|
| 15 |
|
| 16 |
-
CMD ["npm", "run", "start"]
|
|
|
|
| 11 |
RUN yarn config set registry https://registry.npmmirror.com/
|
| 12 |
RUN yarn
|
| 13 |
|
| 14 |
+
# 修改 sed 命令,将 /v1/chat/completions 替换为 /api/v1/chat/completions
|
| 15 |
+
RUN sed -i 's/\/v1\/chat\/completions/\/api\/v1\/chat\/completions/g' src/index.js
|
| 16 |
|
| 17 |
+
CMD ["npm", "run", "start"]
|