ykl45 commited on
Commit
2c165bb
·
verified ·
1 Parent(s): e7ae9d0

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +35 -0
Dockerfile ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.13-slim
2
+
3
+ RUN apt-get update && apt-get install -y git sed
4
+
5
+ RUN git clone https://github.com/renqabs/ta2a.git /app
6
+
7
+ WORKDIR /app
8
+
9
+ RUN sed -i 's/\/v1\/chat\/completions/\/hf\/v1\/chat\/completions/g' src/app.py
10
+
11
+ RUN sed -i 's/\/v1\/models/\/hf\/v1\/models/g' src/app.py
12
+
13
+ RUN pip install --no-cache-dir annotated-types==0.7.0 \
14
+ anyio==4.9.0 \
15
+ certifi==2025.1.31 \
16
+ click==8.1.8 \
17
+ colorama==0.4.6 \
18
+ fastapi==0.115.12 \
19
+ h11==0.14.0 \
20
+ httpcore==1.0.7 \
21
+ httpx==0.28.1 \
22
+ httpx-sse==0.4.0 \
23
+ idna==3.10 \
24
+ pydantic==2.11.2 \
25
+ pydantic-core==2.33.1 \
26
+ python-dotenv==1.1.0 \
27
+ sniffio==1.3.1 \
28
+ starlette==0.46.1 \
29
+ typing-extensions==4.13.1 \
30
+ typing-inspection==0.4.0 \
31
+ uvicorn==0.34.0 \
32
+
33
+ EXPOSE 8000
34
+
35
+ CMD ["python", "server.py"]