rr1 commited on
Commit
6286fb3
·
verified ·
1 Parent(s): 2840616

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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