File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ RUN install_packages libpq-dev \
14
14
&& apt-get clean && rm -rf /var/lib/apt/lists /var/cache/apt/archives
15
15
16
16
RUN chown -R ${container_user}:${container_user_group} /app
17
- USER ${container_user}
18
17
19
18
ADD --chown=${container_user}:${container_user_group} . /app/src
20
19
ADD --chown=${container_user}:${container_user_group} main.py /app
@@ -25,11 +24,12 @@ RUN python3 -m pip install \
25
24
git+https://github.com/OpenG2P/
[email protected] \# subdirectory=openg2p-g2pconnect-mapper-lib \
26
25
./src
27
26
27
+ USER ${container_user}
28
+
28
29
ENV SPAR_MAPPER_WORKER_TYPE=local
29
30
ENV SPAR_MAPPER_HOST=0.0.0.0
30
31
ENV SPAR_MAPPER_PORT=8000
31
32
ENV SPAR_MAPPER_NO_OF_WORKERS=3
32
33
33
34
CMD python3 main.py migrate; \
34
- python3 main.py run;
35
- # gunicorn "main:app" --workers ${SPAR_MAPPER_NO_OF_WORKERS} --worker-class uvicorn.workers.UvicornWorker --bind ${SPAR_MAPPER_HOST}:{SPAR_MAPPER_PORT}
35
+ gunicorn "main:app" --workers ${SPAR_MAPPER_NO_OF_WORKERS} --worker-class uvicorn.workers.UvicornWorker --bind ${SPAR_MAPPER_HOST}:${SPAR_MAPPER_PORT}
You can’t perform that action at this time.
0 commit comments