Skip to content

Commit

Permalink
user not root
Browse files Browse the repository at this point in the history
  • Loading branch information
daviidarr committed Jul 18, 2024
1 parent f180685 commit 78edab4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,12 @@ ENV PYTHONPATH=$ACTUALYIELD_PATH:$HOME

RUN mkdir -p $ACTUALYIELD_PATH
RUN chown -R $USER $ACTUALYIELD_PATH
RUN chmod -R u+rwx $ACTUALYIELD_PATH

WORKDIR $ACTUALYIELD_PATH

COPY --chown=$USER:$USER / $ACTUALYIELD_PATH
RUN pip3 install -Ur $ACTUALYIELD_PATH/requirements.txt

# Run container as root to be able to create and write in folders
RUN chmod +x $ACTUALYIELD_PATH/run.sh
USER root
RUN chmod -R u+rwx $ACTUALYIELD_PATH
ENTRYPOINT [ "./run.sh" ]

0 comments on commit 78edab4

Please sign in to comment.