Tochile commited on
Commit
a3a4b41
·
1 Parent(s): 66830f7

Rename Dockerfile properly

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ # Set working directory inside the container
4
+ WORKDIR /code
5
+
6
+ # Install dependencies
7
+ COPY requirements.txt .
8
+ RUN pip install --no-cache-dir -r requirements.txt
9
+
10
+ # Copy the rest of the app
11
+ COPY . .
12
+
13
+ # Expose Hugging Face default port
14
+ EXPOSE 7860
15
+
16
+ # Start the Flask app with Gunicorn
17
+ CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860"]