yoursdvniel commited on
Commit
4704c97
·
verified ·
1 Parent(s): 75a9881

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use official Python image
2
+ FROM python:3.10-slim
3
+
4
+ # Set environment vars
5
+ ENV PYTHONUNBUFFERED=1
6
+ ENV PORT=7860
7
+
8
+ # Set working directory
9
+ WORKDIR /app
10
+
11
+ # Copy dependencies first (for caching)
12
+ COPY requirements.txt ./
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # Copy app code
16
+ COPY . .
17
+
18
+ # Run the app
19
+ CMD ["python", "main.py"]