jake2004 commited on
Commit
60ef7f5
·
verified ·
1 Parent(s): f9f0179

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use official Python image
2
+ FROM python:3.9
3
+
4
+ # Set the working directory
5
+ WORKDIR /app
6
+
7
+ # Copy the necessary files
8
+ COPY requirements.txt .
9
+ COPY app.py .
10
+ COPY templates ./templates
11
+
12
+ # Install dependencies
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # Expose the Flask port
16
+ EXPOSE 7860
17
+
18
+ # Run the Flask app
19
+ CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]