rizky nindra commited on
Commit
480c756
·
1 Parent(s): 5f6884c
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use lightweight Python base
2
+ FROM python:3.10-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Copy requirements and install
8
+ COPY requirements.txt .
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
+
11
+ # Copy your Flask app
12
+ COPY . .
13
+
14
+ # Expose port 7860 (Hugging Face default)
15
+ EXPOSE 7860
16
+
17
+ # Set environment variable for Flask
18
+ ENV PORT=7860
19
+
20
+ # Run Flask app
21
+ CMD ["python", "app2.py"]