nonzeroexit commited on
Commit
a2b52d1
·
verified ·
1 Parent(s): 750c75a

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ WORKDIR /app
4
+
5
+ COPY requirements.txt requirements.txt
6
+ RUN pip install --no-cache-dir -r requirements.txt
7
+
8
+ COPY . .
9
+
10
+ # Hugging Face Spaces typically expects the application to run on port 7860
11
+ # and will route external traffic (HTTPS on port 443) to this internal port.
12
+ ENV PORT 7860
13
+ EXPOSE 7860
14
+
15
+ # Command to run your Flask app using Gunicorn
16
+ # Assumes your Flask app instance is named 'app' in 'email_sender_api.py'
17
+ CMD ["gunicorn", "--bind", "0.0.0.0:7860", "email_sender_api:app"]