File tree Expand file tree Collapse file tree 2 files changed +19
-10
lines changed Expand file tree Collapse file tree 2 files changed +19
-10
lines changed Original file line number Diff line number Diff line change 27
27
apk del build-deps
28
28
29
29
ADD src /srv/qwc_service/
30
+ ADD entrypoint.sh /entrypoint.sh
30
31
31
32
ENV LD_LIBRARY_PATH=/usr/lib/jvm/java-21-openjdk/lib/server
32
33
ENV SERVICE_MOUNTPOINT=/api/v1/document
33
34
34
- ENTRYPOINT ["/bin/sh" , "-c" , "\
35
- HOME=/tmp gunicorn --chdir /srv/qwc_service \
36
- --bind :9090 \
37
- --workers $UWSGI_PROCESSES \
38
- --threads $UWSGI_THREADS \
39
- --user $SERVICE_UID --group $SERVICE_GID \
40
- --worker-class gthread \
41
- --pythonpath /srv/qwc_service/.venv/lib/python*/site-packages \
42
- --access-logfile - \
43
- server:app" ]
35
+ ENTRYPOINT ["sh" , "/entrypoint.sh" ]
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ cat > /tmp/gunicorn.conf.py << EOF
4
+ user = ${SERVICE_UID:- None}
5
+ group = ${SERVICE_GID:- None}
6
+ EOF
7
+
8
+ HOME=/tmp gunicorn \
9
+ --chdir /srv/qwc_service \
10
+ --bind :9090 \
11
+ --workers $UWSGI_PROCESSES \
12
+ --threads $UWSGI_THREADS \
13
+ --worker-class gthread \
14
+ --pythonpath /srv/qwc_service/.venv/lib/python* /site-packages \
15
+ --access-logfile - \
16
+ -c /tmp/gunicorn.conf.py \
17
+ server:app
You can’t perform that action at this time.
0 commit comments