Skip to content

Commit

Permalink
Fix permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed Aug 2, 2024
1 parent 9ac6979 commit 798e89d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stack/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN if [ "$TARGETARCH" = "arm64" ]; then \
apt-get clean && rm -rf /var/lib/apt/lists/*

# Configure pip to use the same requirements file as constraints file.
ENV PIP_CONSTRAINT /opt/requirements.txt
ENV PIP_CONSTRAINT /opt/python_contraints.txt

# Pin certain shared requirements in the base environment
# so that user cannot change their version and accidently break themselves.
Expand All @@ -38,6 +38,7 @@ RUN echo "aiida-core==${AIIDA_VERSION}" > $PIP_CONSTRAINT

# Pin jupyter-notebook to prevent downgrades or upgrades to v7
RUN echo "notebook==$(jupyter-notebook --version)" >> $PIP_CONSTRAINT
RUN fix-permissions $PIP_CONSTRAINT

RUN cat $PIP_CONSTRAINT | xargs -I{} conda config --system --add pinned_packages {}

Expand Down

0 comments on commit 798e89d

Please sign in to comment.