Skip to content

Commit

Permalink
Fix Dockerimage: allow non-root users to run the container
Browse files Browse the repository at this point in the history
  • Loading branch information
BSchilperoort committed Jan 10, 2024
1 parent 0ce0660 commit e91bea3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ LABEL org.opencontainers.image.source = "https://github.com/EcoExtreML/STEMMUS_S
RUN wget https://github.com/EcoExtreML/STEMMUS_SCOPE/raw/main/run_model_on_snellius/exe/STEMMUS_SCOPE --no-check-certificate

# Make sure the file is executable
RUN chmod +x STEMMUS_SCOPE
RUN chmod +x ./STEMMUS_SCOPE

# Allow MCR to have a cache directory which all users can access
RUN mkdir /temp/
RUN chmod 777 /temp/
ENV MCR_CACHE_ROOT /temp/

CMD ./STEMMUS_SCOPE "" bmi
# Build the image with: `docker build . -t stemmus_scope`
Expand Down

0 comments on commit e91bea3

Please sign in to comment.