File size: 504 Bytes
a2b52d1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM python:3.9-slim

WORKDIR /app

COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

# Hugging Face Spaces typically expects the application to run on port 7860
# and will route external traffic (HTTPS on port 443) to this internal port.
ENV PORT 7860
EXPOSE 7860

# Command to run your Flask app using Gunicorn
# Assumes your Flask app instance is named 'app' in 'email_sender_api.py'
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "email_sender_api:app"]