-
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.
- 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 |
---|---|---|
|
@@ -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 | ||
|
@@ -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} |