Pushpak21 commited on
Commit
353bb1a
·
verified ·
1 Parent(s): 6e1362d

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -0
Dockerfile ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ # Set working directory
4
+ WORKDIR /app
5
+
6
+ # Copy everything into the container
7
+ COPY . .
8
+
9
+ # Install dependencies
10
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
11
+
12
+ # Run the app using gunicorn with 4 workers
13
+ CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]