Skip to content

Commit 0ebf701

Browse files
authored
Fix python version in GPU base images (#235)
1 parent fff8c39 commit 0ebf701

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docker/base_images/base_image.Dockerfile.jinja

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ RUN apt update && \
3333
software-properties-common && \
3434
add-apt-repository -y ppa:deadsnakes/ppa && \
3535
apt update -y && \
36-
apt install -y python3.9 && \
37-
apt install -y python3.9-distutils && \
38-
apt install -y python3.9-venv && \
36+
apt install -y python{{python_version}} && \
37+
apt install -y python{{python_version}}-distutils && \
38+
apt install -y python{{python_version}}-venv && \
3939
rm -rf /var/lib/apt/lists
4040

41-
RUN ln -sf /usr/bin/python3.9 /usr/bin/python3 && \
41+
RUN ln -sf /usr/bin/python{{python_version}} /usr/bin/python3 && \
4242
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
4343
python3 get-pip.py
4444

0 commit comments

Comments
 (0)