AiDeveloper1 commited on
Commit
7d8c764
·
verified ·
1 Parent(s): 49074e2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile CHANGED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Python base image
2
+ FROM python:3.11-slim
3
+
4
+ # Set environment variables
5
+ ENV PYTHONDONTWRITEBYTECODE=1
6
+ ENV PYTHONUNBUFFERED=1
7
+
8
+ # Set work directory
9
+ WORKDIR /app
10
+
11
+ # Install dependencies
12
+ COPY requirements.txt .
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # Copy project files
16
+ COPY . .
17
+
18
+ # Expose the port Flask runs on
19
+ EXPOSE 5000
20
+
21
+ # Run the app
22
+ CMD ["python", "app.py"]