srinidhidevaraj commited on
Commit
8c49cbf
1 Parent(s): ac63413

added book

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -10,7 +10,8 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
10
 
11
  COPY --chown=user . /app
12
 
13
- # RUN pip install gunicorn
14
- # USER 'srinidhidevaraj'
15
- CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0:5000"]
 
16
  # CMD ["gunicorn", "--host", "0.0.0.0:7860", "main:app"]
 
10
 
11
  COPY --chown=user . /app
12
 
13
+ EXPOSE 5000
14
+ CMD ["gunicorn", "--bind", "0.0.0.0:5000", "wsgi:app", "--workers=1"]
15
+
16
+ # CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0"]
17
  # CMD ["gunicorn", "--host", "0.0.0.0:7860", "main:app"]