-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (37 loc) · 1.3 KB
/
Dockerfile
File metadata and controls
40 lines (37 loc) · 1.3 KB
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
35
36
37
38
39
40
# consult: https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices
# Forked: https://github.com/CHECK24/docker.alpine.scipy
FROM phirov/pandas:0.19-2
MAINTAINER phirov@163.com
RUN ln -sf /usr/share/zoneinfo/Etc/UTC /etc/localtime
#RUN echo "http://nl.alpinelinux.org/alpine/v3.4/main" > /etc/apk/repositories
COPY libs/* /tmp/
RUN apk update && \
apk add --no-cache --virtual .build-deps \
g++ \
ca-certificates \
openntpd \
build-base \
musl-dev \
gfortran \
libgfortran && \
# Build BLAS and LAPACK
source /tmp/blas.sh && \
source /tmp/lapack.sh && \
# Install cython, numpy, pandas, scipy
export BLAS=~/src/BLAS/libfblas.a && \
export LAPACK=~/src/lapack-3.5.0/liblapack.a && \
#pip install numpy==1.12.0 cython==0.25.2 && \
#pip install pandas==0.19.2 && \
pip install scipy==0.18.1 && \
# Clean up
mv ~/src/BLAS/libfblas.a /tmp/ && \
mv ~/src/lapack-3.5.0/liblapack.a /tmp/ && \
rm -rf ~/src && \
mkdir -p ~/src/BLAS ~/src/lapack-3.5.0 && \
mv /tmp/libfblas.a ~/src/BLAS/libfblas.a && \
mv /tmp/liblapack.a ~/src/lapack-3.5.0/liblapack.a && \
rm -rf /tmp/* && \
rm -rf ~/.cache/pip && \
# Remove all the extra build stuff
apk del build-base "*-dev"
#apk del .build-deps