Skip to content
Snippets Groups Projects
Commit ac636665a8e6 authored by Cédric Krier's avatar Cédric Krier :atom:
Browse files

Use non-root user

parent 597d984c01ff
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,8 @@
uwsgi-plugin-python3 \
&& rm -rf /var/lib/apt/lists/*
RUN useradd --no-log-init -r -M web
ENV INSTALL_PATH /web
RUN mkdir -p $INSTALL_PATH
......@@ -40,4 +42,5 @@
COPY --from=builder-node $INSTALL_PATH/static/js static/js/
EXPOSE 5000
USER web
CMD uwsgi --ini uwsgi.conf
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment