Skip to content
Snippets Groups Projects
Commit fc82853e authored by Nicolas Dandrimont's avatar Nicolas Dandrimont
Browse files

Run the app manager script with an unprivileged user

parent d617e0b2
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,10 @@
# application (e.g. swh-loader-svn, swh-loader-git, ...)
FROM python:3.10-bullseye
RUN addgroup --gid 1000 swh && \
useradd --gid 1000 --uid 1000 -m -d /opt/swh swh
# First install the runtime deps of all swh applications
RUN apt-get -y update && \
apt-get -y upgrade && \
......@@ -22,6 +26,9 @@ COPY app_manager.py /opt/scripts/
COPY requirements.txt /opt/scripts/
RUN chmod +x /opt/scripts/app_manager.py
USER swh
WORKDIR /opt/swh
RUN pip install -U pip setuptools wheel && \
pip install -r /opt/scripts/requirements.txt
......
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