Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -6,7 +6,9 @@ RUN apt-get update && \
|
|
6 |
git clone https://github.com/LLM-Red-Team/deepseek-free-api.git /app && \
|
7 |
apt-get remove -y git && \
|
8 |
apt-get autoremove -y
|
9 |
-
|
|
|
|
|
10 |
RUN yarn install --registry https://registry.npmmirror.com/ && yarn run build
|
11 |
FROM node:lts-alpine
|
12 |
|
@@ -19,9 +21,7 @@ COPY --from=BUILD_IMAGE /app/node_modules /app/node_modules
|
|
19 |
WORKDIR /app
|
20 |
|
21 |
RUN chmod -R 777 /app
|
22 |
-
|
23 |
-
RUN sed -i "s|prefix: '/v1/chat',|prefix: '/api/v1/chat',|g" /app/src/api/routes/chat.ts
|
24 |
-
RUN sed -i "s|prefix: '/v1',|prefix: '/api/v1',|g" /app/src/api/routes/models.ts
|
25 |
EXPOSE 8000
|
26 |
|
27 |
CMD ["npm", "start"]
|
|
|
6 |
git clone https://github.com/LLM-Red-Team/deepseek-free-api.git /app && \
|
7 |
apt-get remove -y git && \
|
8 |
apt-get autoremove -y
|
9 |
+
RUN ls /app
|
10 |
+
RUN sed -i "s|prefix: '/v1/chat',|prefix: '/api/v1/chat',|g" /app/src/api/routes/chat.ts
|
11 |
+
RUN sed -i "s|prefix: '/v1',|prefix: '/api/v1',|g" /app/src/api/routes/models.ts
|
12 |
RUN yarn install --registry https://registry.npmmirror.com/ && yarn run build
|
13 |
FROM node:lts-alpine
|
14 |
|
|
|
21 |
WORKDIR /app
|
22 |
|
23 |
RUN chmod -R 777 /app
|
24 |
+
|
|
|
|
|
25 |
EXPOSE 8000
|
26 |
|
27 |
CMD ["npm", "start"]
|