Nice commited on
Commit
6513739
·
verified ·
1 Parent(s): 492a3c9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -7,11 +7,11 @@ RUN apk update && \
7
 
8
  RUN git clone https://github.com/len-ni/Youcom_api && \
9
  cd Youcom_api && \
10
- sed -i "s/debug=True, port=50600/host='0.0.0.0', port=8000/g" api.py && \
11
- pip install -r requirements.txt
12
 
13
  WORKDIR /Youcom_api
14
 
15
  EXPOSE 8000
16
 
17
- CMD ["python", "api.py"]
 
7
 
8
  RUN git clone https://github.com/len-ni/Youcom_api && \
9
  cd Youcom_api && \
10
+ sed -i "s/debug=True/host='0.0.0.0'/g" api.py && \
11
+ pip install -r requirements.txt && pip install gunicorn
12
 
13
  WORKDIR /Youcom_api
14
 
15
  EXPOSE 8000
16
 
17
+ CMD gunicorn -w 4 -b 0.0.0.0:8000 api:app