File size: 432 Bytes
dc48027
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77ae037
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Use Python base image
FROM python:3.10-slim

# Set working directory
WORKDIR /app

# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy the rest of your app
COPY . .

# Expose port 7860 for Hugging Face Spaces (or adjust as needed)
EXPOSE 7860

# Run Flask app using Gunicorn (production WSGI server)
CMD ["gunicorn", "-c", "gunicorn_conf.py", "main:app"]