-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update SPAR_MAPPER_WORKER_TYPE to local
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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} |