diff --git a/forms-flow-data-analysis-api/Dockerfile b/forms-flow-data-analysis-api/Dockerfile index 50953038ab..0ad85bd0de 100644 --- a/forms-flow-data-analysis-api/Dockerfile +++ b/forms-flow-data-analysis-api/Dockerfile @@ -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"] diff --git a/forms-flow-data-analysis-api/entrypoint b/forms-flow-data-analysis-api/entrypoint.sh similarity index 66% rename from forms-flow-data-analysis-api/entrypoint rename to forms-flow-data-analysis-api/entrypoint.sh index 6bc65c8969..ba50fec9e2 100644 --- a/forms-flow-data-analysis-api/entrypoint +++ b/forms-flow-data-analysis-api/entrypoint.sh @@ -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 \ No newline at end of file