Nahiyan14 commited on
Commit
eb7c4fc
·
verified ·
1 Parent(s): b7d7e4b

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Copy requirements first for better caching
6
+ COPY requirements.txt .
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
+
9
+ # Copy application code
10
+ COPY . .
11
+
12
+ # Make port 7860 available (Hugging Face default)
13
+ ENV PORT=7860
14
+
15
+ # Run the application - using Gunicorn for production
16
+ CMD gunicorn --bind 0.0.0.0:${PORT} app:app