Skip to content

Commit ec98c27

Browse files
authored
Uptake python to 3.8 in Dockerfile for job-local image (#205)
1 parent 166c1fc commit ec98c27

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

ads/opctl/docker/Dockerfile.job

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ ENV LANG=$LANG
6262
ENV SHELL=/bin/bash
6363

6464
# set /opt folder permissions for $DATASCIENCE_USER. Conda is going to live in this folder.
65-
ARG MINICONDA_VER=4.8.3
6665
RUN chown $DATASCIENCE_USER /opt
6766

6867
USER $DATASCIENCE_USER
@@ -71,7 +70,7 @@ RUN curl -L https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.s
7170
&& /bin/bash /home/datascience/miniconda.sh -f -b -p /opt/conda \
7271
&& rm /home/datascience/miniconda.sh \
7372
&& ls /opt/**/* \
74-
&& /opt/conda/bin/conda install python=3.7 anaconda \
73+
&& /opt/conda/bin/conda install python=3.8 anaconda \
7574
&& /opt/conda/bin/conda clean -yaf
7675

7776
WORKDIR /
@@ -91,7 +90,7 @@ WORKDIR /home/datascience
9190
USER $DATASCIENCE_USER
9291

9392
####### WRAP UP ###############################
94-
RUN python -c 'import sys; assert(sys.version_info[:2]) == (3, 7), "Python 3.7 is not detected"'
93+
RUN python -c 'import sys; assert(sys.version_info[:2]) == (3, 8), "Python 3.8 is not detected"'
9594
WORKDIR /
9695

9796
RUN conda list

ads/opctl/docker/Dockerfile.job.gpu

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ ENV LANG=$LANG
107107
ENV SHELL=/bin/bash
108108

109109
# set /opt folder permissions for $DATASCIENCE_USER. Conda is going to live in this folder.
110-
ARG MINICONDA_VER=4.8.3
111110
RUN chown $DATASCIENCE_USER /opt
112111

113112
USER $DATASCIENCE_USER
@@ -116,7 +115,7 @@ RUN curl -L https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.s
116115
&& /bin/bash /home/datascience/miniconda.sh -f -b -p /opt/conda \
117116
&& rm /home/datascience/miniconda.sh \
118117
&& ls /opt/**/* \
119-
&& /opt/conda/bin/conda install python=3.7 anaconda \
118+
&& /opt/conda/bin/conda install python=3.8 anaconda \
120119
&& /opt/conda/bin/conda clean -yaf
121120

122121
WORKDIR /
@@ -136,7 +135,7 @@ WORKDIR /home/datascience
136135
USER $DATASCIENCE_USER
137136

138137
####### WRAP UP ###############################
139-
RUN python -c 'import sys; assert(sys.version_info[:2]) == (3, 7), "Python 3.7 is not detected"'
138+
RUN python -c 'import sys; assert(sys.version_info[:2]) == (3, 8), "Python 3.8 is not detected"'
140139
WORKDIR /
141140

142141
RUN conda list

0 commit comments

Comments
 (0)