File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
src/anaconda/.devcontainer Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,10 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
4343 && echo "conda activate base" >> ~/.bashrc \
4444 && apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts/add-notice.sh
4545
46+ # We need to execute pip install / conda update commands under
47+ # container user since pip doesn't preserve directory permissions
48+ USER ${USERNAME}
49+
4650# Temporary: Upgrade python packages due to mentioned CVEs
4751# They are installed by the base image (continuumio/anaconda3) which does not have the patch.
4852RUN python3 -m pip install \
@@ -87,12 +91,5 @@ RUN conda install \
8791 # https://github.com/advisories/GHSA-mrwq-x4v8-fh7p
8892 pygments=2.15.1
8993
90- # Create conda group, update conda directory permissions,
91- # add user to conda group
92- # Note: We need to execute these commands after pip install / conda update
93- # since pip doesn't preserve directory permissions
94- RUN groupadd -r conda --gid 900 \
95- && chown -R :conda /opt/conda \
96- && chmod -R g+w /opt/conda \
97- && find /opt -type d | xargs -n 1 chmod g+s \
98- && usermod -aG conda ${USERNAME}
94+ # Switch back to the root user for backward compatibility
95+ USER root
You can’t perform that action at this time.
0 commit comments