Skip to content

Commit

Permalink
Update SPAR_MAPPER_WORKER_TYPE to local
Browse files Browse the repository at this point in the history
  • Loading branch information
PSNAppz committed Jun 21, 2024
1 parent 24edf4a commit 3986ba7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]\#subdirectory=openg2p-fastapi-common \
git+https://github.com/OpenG2P/[email protected]\#subdirectory=openg2p-g2pconnect-common-lib \
git+https://github.com/OpenG2P/[email protected]\#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}

0 comments on commit 3986ba7

Please sign in to comment.