Skip to content

Commit

Permalink
Fix setting environment to be owned by group 0 in the container
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburr committed Oct 4, 2023
1 parent 6ac9c8d commit 9490af5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ RUN chmod 755 /dockerMicroMambaEntrypoint.sh
# In many clusters the container is ran as a random uid for security reasons.
# If we mark the conda directory as group 0 and give it group write permissions
# then we're still able to manage the environment from inside the container.
USER 0
RUN chown -R $MAMBA_USER:0 /opt/conda && chmod -R g=u /opt/conda
USER $MAMBA_USER

ENTRYPOINT [ "/dockerEntrypoint.sh" ]

Expand Down

0 comments on commit 9490af5

Please sign in to comment.