NihalGazi commited on
Commit
b0fd046
·
verified ·
1 Parent(s): 1e5b853

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -7
Dockerfile CHANGED
@@ -1,17 +1,14 @@
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"]
 
 
1
  FROM python:3.10-slim
2
 
3
+ # Install deps
4
  RUN pip install --no-cache-dir flask requests gunicorn
5
 
 
6
  WORKDIR /app
7
 
8
+ # Copy code and default image
9
+ COPY app.py /app/app.py
10
+ COPY default.png /app/default.png
11
 
 
12
  EXPOSE 7860
13
 
 
14
  CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]