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

Commit

Permalink
Lock python version
Browse files Browse the repository at this point in the history
  • Loading branch information
jansenignacio committed May 3, 2018
1 parent 381c772 commit 33d6fd5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dockerbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ apk update

# Install Python, pip, setuptools and bind aliases
# Python from Alpine repo is smaller vs. official Docker image
apk add python3
apk add python3=3.6.3-r9
python3 -m ensurepip
rm -rf /usr/lib/python*/ensurepip
pip3 install --upgrade pip setuptools
Expand All @@ -28,19 +28,19 @@ fi
# Build dependencies for Python packages
apk add \
--virtual=.shared-build-dependencies \
file binutils \
musl-dev python3-dev
file binutils musl-dev \
python3-dev=3.6.3-r9

apk add \
--virtual=.scipy-build-dependencies \
g++ gfortran openblas-dev
g++ gfortran openblas-dev

apk add \
--virtual=.scipy-runtime-dependencies \
libstdc++ openblas
libstdc++ openblas

# Numpy compilation requires xlocale.h
ln -s locale.h /usr/include/xlocale.h
ln -s locale.h /usr/include/xlocale.h

# Download, build, install Python packages
pip install --no-cache-dir numpy scipy
Expand Down

0 comments on commit 33d6fd5

Please sign in to comment.