Alimubariz124 commited on
Commit
0845016
·
verified ·
1 Parent(s): cf691d2

Create Dockers

Browse files
Files changed (1) hide show
  1. Dockers +15 -0
Dockers ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ # Set the working directory in the container
4
+ WORKDIR /app
5
+
6
+ COPY . /app
7
+
8
+
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
+
11
+ # Expose the port Flask will run on
12
+ EXPOSE 7860
13
+
14
+ # Run app.py when the container launches
15
+ CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]