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

Commit b32fa98

Browse files
committed
Rewrite new Dockerfile step
1 parent da40c18 commit b32fa98

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +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 existing Python installation from Oryx base image
72+
RUN rm -rf /opt/python && rm "${PYTHON_ROOT}/current"
73+
7174
# Install Python, JupyterLab, common machine learning packages, and Ruby utilities
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" \
75+
RUN bash /tmp/scripts/python-debian.sh "3.10.4" "/opt/python/3.10.4" "${PIPX_HOME}" "${USERNAME}" "true" "true" "false" \
76+
# Preserve symbolic link from Oryx base image
7577
&& ln -sf /opt/python/3.10.4 "${PYTHON_ROOT}/current" \
7678
# Install JupyterLab and common machine learning packages
7779
&& PYTHON_BINARY="${PYTHON_ROOT}/current/bin/python" \

0 commit comments

Comments
 (0)