Skip to content

Commit

Permalink
Mapper deployment fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
PSNAppz committed Jun 26, 2024
1 parent 98142d9 commit 50033c9
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 @@ -14,7 +14,6 @@ RUN install_packages libpq-dev \
&& apt-get clean && rm -rf /var/lib/apt/lists /var/cache/apt/archives

RUN chown -R ${container_user}:${container_user_group} /app
USER ${container_user}

ADD --chown=${container_user}:${container_user_group} . /app/src
ADD --chown=${container_user}:${container_user_group} main.py /app
Expand All @@ -25,11 +24,12 @@ RUN python3 -m pip install \
git+https://github.com/OpenG2P/[email protected]\#subdirectory=openg2p-g2pconnect-mapper-lib \
./src

USER ${container_user}

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; \
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}
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 50033c9

Please sign in to comment.