Skip to content
Snippets Groups Projects
Verified Commit efd8a26f authored by Sören Ducati's avatar Sören Ducati
Browse files

fix: switch over to python user to drop permissions

parent 166bf4fa
No related branches found
No related tags found
1 merge request!26Drop root privileges in container
......@@ -6,6 +6,8 @@ EXPOSE 5000
# First, copy and install only the requirements...
RUN useradd -ms /bin/bash python && chown -R python:python /app
USER python
ENV PATH="$PATH:/home/python/.local/bin"
RUN pip install --upgrade pip setuptools
RUN pip install pipenv
COPY Pipfile.lock .
......
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