Skip to content

Commit

Permalink
fix: ensure that compute functions are running as non-root
Browse files Browse the repository at this point in the history
Signed-off-by: SdgJlbl <sarah.diot-girard@owkin.com>
  • Loading branch information
SdgJlbl committed Jul 16, 2024
1 parent 15fa313 commit 85ed65f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions substrafl/remote/register/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@
# update image
RUN apt update -y
# create a non-root user
RUN addgroup --gid 1001 group
RUN adduser --disabled-password --gecos "" --uid 1001 --gid 1001 --home /home user
ENV PYTHONPATH /home
WORKDIR /home
USER user
# install dependencies
RUN python{python_version} -m pip install -U pip
Expand Down

0 comments on commit 85ed65f

Please sign in to comment.