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

Commit a97f2b0

Browse files
committed
Remove existing Python installations
1 parent 0e0daaa commit a97f2b0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,12 @@ 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+
7174
# Install Python, JupyterLab, common machine learning packages, and Ruby utilities
72-
RUN bash /tmp/scripts/python-debian.sh "none" "/opt/python/latest" "${PIPX_HOME}" "${USERNAME}" "true" \
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" \
7377
# Install JupyterLab and common machine learning packages
7478
&& PYTHON_BINARY="${PYTHON_ROOT}/current/bin/python" \
7579
&& bash /tmp/scripts/jupyterlab-debian.sh "latest" "automatic" ${PYTHON_BINARY} "true" \

0 commit comments

Comments
 (0)