Chvigo commited on
Commit
c4b470b
·
verified ·
1 Parent(s): c951bf7

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Base image: CPU-only Python 3.12
2
+ FROM python:3.12-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Copy project files
8
+ COPY requirements.txt .
9
+ COPY app.py .
10
+
11
+ # Install dependencies
12
+ RUN pip install --upgrade pip
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # Expose port
16
+ EXPOSE 8000
17
+
18
+ # Start Flask app
19
+ CMD ["gunicorn", "--bind", "0.0.0.0:8000", "app:app"]