Run bot in a container as unprivileged user

master
Nikola Forró 7 years ago
parent 73b022a826
commit 14b2a923f7

@ -6,4 +6,8 @@ RUN touch settings.cfg
RUN pip install --no-cache-dir --requirement requirements.txt RUN pip install --no-cache-dir --requirement requirements.txt
RUN addgroup -g 9999 lilia
USER nobody:lilia
ENTRYPOINT ["python", "bot.py"] ENTRYPOINT ["python", "bot.py"]

Loading…
Cancel
Save