Skip to content

Commit

Permalink
set installed PYTHON_VER as default python version
Browse files Browse the repository at this point in the history
  • Loading branch information
matifali committed Apr 19, 2024
1 parent 6e75120 commit 74a1e28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions base.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
zip && \
apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Set the installed PYTHON_VER as the default python version
RUN update-alternatives --install /usr/bin/python python /usr/bin/python${PYTHON_VER} 1 && \
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python${PYTHON_VER} 1

# Expose port 8000 for code-server
EXPOSE 8000

Expand Down

0 comments on commit 74a1e28

Please sign in to comment.