Docker: default to non-root exec
continuous-integration/drone/push Build is passing Details

master
pictuga 2021-10-19 22:20:44 +02:00
parent d023ec8d73
commit 3f12258e98
1 changed files with 2 additions and 0 deletions

View File

@ -5,4 +5,6 @@ RUN apk add --no-cache python3 py3-lxml py3-pip py3-wheel git
ADD . /app ADD . /app
RUN pip3 install --no-cache-dir /app[full] gunicorn RUN pip3 install --no-cache-dir /app[full] gunicorn
USER 1000:1000
CMD gunicorn --bind 0.0.0.0:8000 -w 4 --preload --access-logfile - morss CMD gunicorn --bind 0.0.0.0:8000 -w 4 --preload --access-logfile - morss