Skip to content

Commit

Permalink
Made changes in entrypoint and Dockerfile (#2048)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiran-aot authored May 16, 2024
1 parent 47e3a68 commit e8fbb69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions forms-flow-data-analysis-api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ RUN pip install .
EXPOSE 5000
RUN python3 -c "from transformers import pipeline; pipeline('sentiment-analysis', model='$MODEL_ID', truncation=True)"

RUN chmod u+x ./entrypoint
ENTRYPOINT ["/bin/sh", "entrypoint"]
RUN chmod u+x ./entrypoint.sh
ENTRYPOINT ["/bin/sh", "entrypoint.sh"]
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ if [ "$DATABASE_SUPPORT" = "ENABLED" ]
then
flask db upgrade
fi
gunicorn -b :5000 'gunicorn_config:app' --timeout 120 --worker-class=gthread --workers=5 --threads=10 --preload
# running the flask server using gunicorn
gunicorn -b :5000 'gunicorn_config:app' --timeout 120 --worker-class=gthread --workers=5 --threads=10 --preload

0 comments on commit e8fbb69

Please sign in to comment.