We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c3bf25 commit 138d9b5Copy full SHA for 138d9b5
Dockerfile
@@ -26,11 +26,17 @@ COPY LICENSE LICENSE
26
RUN python -m pip install --no-cache-dir --upgrade .["psycopg-binary"]
27
RUN rm -rf titiler/ pyproject.toml README.md LICENSE
28
29
+RUN groupadd -g 1000 user && \
30
+ useradd -u 1000 -g user -s /bin/bash -m user
31
+
32
+USER user
33
34
###################################################
35
# For compatibility (might be removed at one point)
36
ENV MODULE_NAME=titiler.pgstac.main
37
ENV VARIABLE_NAME=app
38
ENV HOST=0.0.0.0
39
ENV PORT=80
40
ENV WEB_CONCURRENCY=1
41
42
CMD gunicorn -k uvicorn.workers.UvicornWorker ${MODULE_NAME}:${VARIABLE_NAME} --bind ${HOST}:${PORT} --workers ${WEB_CONCURRENCY}
0 commit comments