thorodin103 commited on
Commit
8941b49
·
verified ·
1 Parent(s): 7bbf3f8

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Set working directory
4
+ WORKDIR /app
5
+
6
+ # Install dependencies
7
+ RUN pip install --no-cache-dir \
8
+ fastapi==0.104.1 \
9
+ uvicorn==0.24.0 \
10
+ pydantic==2.5.0 \
11
+ pandas==2.1.3 \
12
+ numpy==1.26.2 \
13
+ openai==1.3.7 \
14
+ pyyaml==6.0.1
15
+
16
+ # Copy all project files
17
+ COPY . .
18
+
19
+ # Expose port
20
+ EXPOSE 7860
21
+
22
+ # Start server
23
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]