/
bezier.Dockerfile
34 lines (31 loc) · 1.09 KB
/
bezier.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM dhermes/python-multi
# Install the current versions of nox and NumPy.
RUN python3.6 -m pip install --no-cache-dir \
colorlog==2.10.0 \
nox-automation==0.18.2 \
numpy==1.14.0 \
py==1.4.34 \
six==1.11.0 \
virtualenv==15.1.0
# Install `gfortran` (for Fortran extensions), `libatlas-dev`,
# `libblas-dev`, `liblapack-dev` (for SciPy) and `lcov` for
# Fortran code coverage.
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gfortran \
libatlas-dev \
libblas-dev \
liblapack-dev \
lcov \
&& apt-get clean autoclean \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/* \
&& rm -f /var/cache/apt/archives/*.deb
# Build NumPy and SciPy wheels for PyPy since it takes a bit of time
RUN virtualenv --python=pypy pypy-env \
&& pypy-env/bin/python -m pip install --upgrade pip wheel \
&& mkdir /wheelhouse \
&& pypy-env/bin/python -m pip wheel --wheel-dir=/wheelhouse numpy==1.14.0 \
&& pypy-env/bin/python -m pip install /wheelhouse/numpy*.whl \
&& pypy-env/bin/python -m pip wheel --wheel-dir=/wheelhouse scipy==1.0.0 \
&& rm -fr pypy-env