Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
@@ -1,11 +1,15 @@
|
|
1 |
FROM python:3.10-slim
|
2 |
|
3 |
-
RUN apt-get update && apt-get install -y git
|
4 |
|
5 |
RUN git clone https://github.com/xLmiler/grok2api.git /app
|
6 |
|
7 |
WORKDIR /app
|
8 |
|
|
|
|
|
|
|
|
|
9 |
RUN pip install --no-cache-dir -r requirements.txt
|
10 |
|
11 |
ENV PORT=3000
|
|
|
1 |
FROM python:3.10-slim
|
2 |
|
3 |
+
RUN apt-get update && apt-get install -y git sed
|
4 |
|
5 |
RUN git clone https://github.com/xLmiler/grok2api.git /app
|
6 |
|
7 |
WORKDIR /app
|
8 |
|
9 |
+
RUN sed -i 's/\/v1\/chat\/completions/\/hf\/v1\/chat\/completions/g' app.py
|
10 |
+
|
11 |
+
RUN sed -i 's/\/v1\/models/\/hf\/v1\/models/g' app.py
|
12 |
+
|
13 |
RUN pip install --no-cache-dir -r requirements.txt
|
14 |
|
15 |
ENV PORT=3000
|