NitinBot001 commited on
Commit
505eb0d
·
verified ·
1 Parent(s): 647ffb0

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use official lightweight Python image
2
+ FROM python:3.11-slim
3
+
4
+ # Prevent Python from writing pyc files
5
+ ENV PYTHONDONTWRITEBYTECODE=1
6
+
7
+ # Prevent Python from buffering stdout/stderr
8
+ ENV PYTHONUNBUFFERED=1
9
+
10
+ # Set working directory
11
+ WORKDIR /app
12
+
13
+ # Install dependencies
14
+ COPY requirements.txt .
15
+
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
+
18
+ # Copy application code
19
+ COPY . .
20
+
21
+ # Expose port
22
+ EXPOSE 8000
23
+
24
+ # Run app using Gunicorn
25
+ CMD ["gunicorn", "--bind", "0.0.0.0:8000", "app:app"]