Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit 3af7c0f

Browse files
committed
Condense new code
1 parent a97f2b0 commit 3af7c0f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

containers/codespaces-linux/.devcontainer/base.Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,10 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
6868
&& mkdir -p /usr/local/etc/vscode-dev-containers/ \
6969
&& mv -f /tmp/scripts/first-run-notice.txt /usr/local/etc/vscode-dev-containers/
7070

71-
# Remove all existing Python installations
72-
RUN rm -rf /opt/python
73-
7471
# Install Python, JupyterLab, common machine learning packages, and Ruby utilities
75-
# Image includes a link from /home/codespace/.python/current -> /opt/python/3.10.4
76-
RUN bash /tmp/scripts/python-debian.sh "3.10.4" "/opt/python/3.10.4" "${PIPX_HOME}" "${USERNAME}" "true" "true" "false" \
72+
RUN rm -rf /opt/python \
73+
# Replace existing Python installation from Oryx image with a fresh installation
74+
&& bash /tmp/scripts/python-debian.sh "3.10.4" "/opt/python/3.10.4" "${PIPX_HOME}" "${USERNAME}" "true" "true" "false" \
7775
# Install JupyterLab and common machine learning packages
7876
&& PYTHON_BINARY="${PYTHON_ROOT}/current/bin/python" \
7977
&& bash /tmp/scripts/jupyterlab-debian.sh "latest" "automatic" ${PYTHON_BINARY} "true" \

0 commit comments

Comments
 (0)