Skip to content

Commit 102d846

Browse files
Bruno Allabrowniebroke
Bruno Alla
authored andcommitted
Add Python 3.7 to the Docker image
1 parent 3c06f64 commit 102d846

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Dockerfile

+10
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ ENV LANG C.UTF-8
1111
ENV PYTHON_VERSION_27 2.7.14
1212
ENV PYTHON_VERSION_35 3.5.5
1313
ENV PYTHON_VERSION_36 3.6.4
14+
ENV PYTHON_VERSION_37 3.7.0
1415
ENV CONDA_VERSION 4.5.11
1516
LABEL python.version_27=$PYTHON_VERSION_27
1617
LABEL python.version_35=$PYTHON_VERSION_35
1718
LABEL python.version_36=$PYTHON_VERSION_36
19+
LABEL python.version_37=$PYTHON_VERSION_37
1820
LABEL conda.version=$CONDA_VERSION
1921

2022
# System dependencies
@@ -74,10 +76,12 @@ ENV PATH /home/docs/.pyenv/shims:$PATH:/home/docs/.pyenv/bin
7476

7577
# Install supported Python versions
7678
RUN pyenv install $PYTHON_VERSION_27 && \
79+
pyenv install $PYTHON_VERSION_37 && \
7780
pyenv install $PYTHON_VERSION_36 && \
7881
pyenv install $PYTHON_VERSION_35 && \
7982
pyenv global \
8083
$PYTHON_VERSION_27 \
84+
$PYTHON_VERSION_37 \
8185
$PYTHON_VERSION_36 \
8286
$PYTHON_VERSION_35
8387

@@ -88,6 +92,12 @@ RUN pyenv local $PYTHON_VERSION_27 && \
8892
pyenv exec pip install --only-binary numpy,scipy numpy scipy && \
8993
pyenv exec pip install pandas matplotlib virtualenv
9094

95+
RUN pyenv local $PYTHON_VERSION_37 && \
96+
pyenv exec pip install -U pip && \
97+
pyenv exec pip install --only-binary numpy,scipy numpy scipy && \
98+
pyenv exec pip install pandas matplotlib virtualenv
99+
pyenv exec pip install pandas matplotlib virtualenv
100+
91101
RUN pyenv local $PYTHON_VERSION_36 && \
92102
pyenv exec pip install -U pip && \
93103
pyenv exec pip install --only-binary numpy,scipy numpy scipy && \

0 commit comments

Comments
 (0)