NihalGazi commited on
Commit
071e1f4
·
verified ·
1 Parent(s): 39956f0

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a minimal Python image
2
+ FROM python:3.10-slim
3
+
4
+ # Install Flask, requests, and Gunicorn
5
+ RUN pip install --no-cache-dir flask requests gunicorn
6
+
7
+ # Set working directory
8
+ WORKDIR /app
9
+
10
+ # Copy application code
11
+ COPY app.py /app/app.py
12
+
13
+ # Expose port 7860 (required by Hugging Face Spaces)
14
+ EXPOSE 7860
15
+
16
+ # Run via Gunicorn for production‐ready serving
17
+ CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]