Skip to content

Commit

Permalink
Update Dockerfile.api
Browse files Browse the repository at this point in the history
  • Loading branch information
engrmarkk committed Sep 11, 2024
1 parent 0575120 commit 456e6f2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile.api
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ EXPOSE 7000
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

#CMD ["python", "runserver.py"]
CMD ["gunicorn", "-b", "0.0.0.0:7000", "-w", "4", "runserver:app"] # for (celery)
#CMD ["gunicorn", "-b", "0.0.0.0:7000", "-w", "4", "runserver:app"] # for (celery)
#CMD ["gunicorn", "-b", "0.0.0.0:7000", "-w", "4", "-k", "eventlet", "runserver:app"] # for websocket

CMD ["gunicorn", "-b", "0.0.0.0:7000", "-w", "4", "-k", "gthread", "--threads", "2", "runserver:app"]

0 comments on commit 456e6f2

Please sign in to comment.