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

Commit 33d6fd5

Browse files
committed
Lock python version
1 parent 381c772 commit 33d6fd5

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

dockerbuild.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ apk update
1212

1313
# Install Python, pip, setuptools and bind aliases
1414
# Python from Alpine repo is smaller vs. official Docker image
15-
apk add python3
15+
apk add python3=3.6.3-r9
1616
python3 -m ensurepip
1717
rm -rf /usr/lib/python*/ensurepip
1818
pip3 install --upgrade pip setuptools
@@ -28,19 +28,19 @@ fi
2828
# Build dependencies for Python packages
2929
apk add \
3030
--virtual=.shared-build-dependencies \
31-
file binutils \
32-
musl-dev python3-dev
31+
file binutils musl-dev \
32+
python3-dev=3.6.3-r9
3333

3434
apk add \
3535
--virtual=.scipy-build-dependencies \
36-
g++ gfortran openblas-dev
36+
g++ gfortran openblas-dev
3737

3838
apk add \
3939
--virtual=.scipy-runtime-dependencies \
40-
libstdc++ openblas
40+
libstdc++ openblas
4141

4242
# Numpy compilation requires xlocale.h
43-
ln -s locale.h /usr/include/xlocale.h
43+
ln -s locale.h /usr/include/xlocale.h
4444

4545
# Download, build, install Python packages
4646
pip install --no-cache-dir numpy scipy

0 commit comments

Comments
 (0)