agblaze commited on
Commit
08d9f07
·
verified ·
1 Parent(s): cf404e6

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ # Set the working directory
4
+ WORKDIR /app
5
+
6
+ # Copy all files from the repository to the container
7
+ COPY . /app
8
+
9
+ # Install dependencies
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
+
12
+ # Expose the port (7860 is default, change if needed)
13
+ EXPOSE 7860
14
+
15
+ # Run Flask with Gunicorn
16
+ CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]