ParthSadaria commited on
Commit
7362885
·
verified ·
1 Parent(s): b3a995a

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Copy requirements first to leverage Docker cache
6
+ COPY requirements.txt .
7
+
8
+ # Install dependencies
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
+
11
+ # Copy the rest of the application
12
+ COPY . .
13
+
14
+ # Create static directory if it doesn't exist
15
+ RUN mkdir -p static
16
+
17
+ # Expose port
18
+ EXPOSE 8000
19
+
20
+ # Command to run the application
21
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]