enot2t commited on
Commit
e9f21cd
·
1 Parent(s): 938b874
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -4,8 +4,12 @@ WORKDIR /code
4
 
5
  COPY ./requirements.txt /code/requirements.txt
6
 
 
 
 
 
7
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
9
- COPY . .
10
 
11
- CMD ["gunicorn", "-b", "0.0.0.0:7860", "main:app"]
 
4
 
5
  COPY ./requirements.txt /code/requirements.txt
6
 
7
+ RUN pip install gunicorn
8
+
9
+ RUN pip install flask
10
+
11
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
12
 
13
+ COPY . /code
14
 
15
+ CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:8080", "main:app"]