Skip to content

Commit 6c2e037

Browse files
authored
Merge pull request #19 from nmfs-opensci/copilot/fix-dockerfile-permissions
Fix permission denied errors in /tmp/environment during package installs
2 parents 99aaa18 + 13723bd commit 6c2e037

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ RUN wget -qO- https://raw.githubusercontent.com/retorquere/zotero-deb/master/ins
1515

1616
# Copy the repo files into /tmp (environment/*.yml, install.R, etc)
1717
COPY . /tmp/
18+
# Fix permissions so NB_USER can write to /tmp/environment during package installs
19+
RUN chown -R ${NB_USER}:${NB_USER} /tmp/environment && chmod -R 755 /tmp/environment
1820

1921
# Update conda env sequentially to prevent hairy solve
2022
RUN /pyrocket_scripts/install-conda-packages.sh /tmp/environment/env-core1.yml || (echo "install env-core1 failed" && exit 1)

0 commit comments

Comments
 (0)