Curative commited on
Commit
25dd208
·
verified ·
1 Parent(s): 04c822b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile CHANGED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ # Install system packages
4
+ RUN apt-get update && apt-get install -y git
5
+
6
+ # Set working directory
7
+ WORKDIR /app
8
+
9
+ # Install Python dependencies
10
+ COPY requirements.txt .
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Copy the application files
14
+ COPY . .
15
+
16
+ # Expose the server port
17
+ EXPOSE 7860
18
+
19
+ # Start the FastAPI server
20
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]