diff --git a/Dockerfile b/Dockerfile index 439558a..8cc397a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,16 +20,16 @@ ADD --chown=${container_user}:${container_user_group} . /app/src ADD --chown=${container_user}:${container_user_group} main.py /app RUN python3 -m pip install \ - gunicorn \ git+https://github.com/openg2p/openg2p-fastapi-common@1.1.0\#subdirectory=openg2p-fastapi-common \ git+https://github.com/OpenG2P/openg2p-g2pconnect-common-lib@1.1.0\#subdirectory=openg2p-g2pconnect-common-lib \ git+https://github.com/OpenG2P/openg2p-g2pconnect-common-lib@1.1.0\#subdirectory=openg2p-g2pconnect-mapper-lib \ ./src -ENV SPAR_MAPPER_WORKER_TYPE=gunicorn +ENV SPAR_MAPPER_WORKER_TYPE=local ENV SPAR_MAPPER_HOST=0.0.0.0 ENV SPAR_MAPPER_PORT=8000 ENV SPAR_MAPPER_NO_OF_WORKERS=3 CMD python3 main.py migrate; \ - gunicorn "main:app" --workers ${SPAR_MAPPER_NO_OF_WORKERS} --worker-class uvicorn.workers.UvicornWorker --bind ${SPAR_MAPPER_HOST}:{SPAR_MAPPER_PORT} + python3 main.py run; +# gunicorn "main:app" --workers ${SPAR_MAPPER_NO_OF_WORKERS} --worker-class uvicorn.workers.UvicornWorker --bind ${SPAR_MAPPER_HOST}:{SPAR_MAPPER_PORT}