-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
39 lines (36 loc) · 1.34 KB
/
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
35
36
37
38
39
FROM alpine:3.11
RUN apk add --no-cache python3 && \
python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 install --upgrade pip setuptools && \
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \
rm -r /root/.cache
RUN apk add --no-cache zlib libjpeg-turbo-dev libpng-dev freetype-dev lcms2-dev libwebp-dev harfbuzz-dev fribidi-dev tcl-dev tk-dev && \
apk add --no-cache libpng freetype libstdc++ openblas libxml2 libxslt && \
apk add --no-cache --virtual .build-deps \
g++ gfortran file binutils \
openblas-dev \
python3-dev \
gcc \
build-base \
musl-dev \
libxml2-dev \
libxslt-dev \
libressl-dev \
pkgconfig && \
ln -s /usr/include/locale.h /usr/include/xlocale.h \
&& pip3 install wheel \
&& pip3 install matplotlib \
&& pip3 install joblib \
&& pip3 install numpy \
&& pip3 install scipy==1.3.3 \
&& pip3 install pandas \
&& pip3 install pyyawt \
&& pip3 install rsHRF \
&& rm -r /root/.cache \
&& find /usr/lib/python3.*/ -name 'tests' -exec rm -r '{}' + \
&& find /usr/lib/python3.*/site-packages/ -name '*.so' -print -exec sh -c 'file "{}" | grep -q "not stripped" && strip -s "{}"' \; \
&& rm /usr/include/xlocale.h \
&& apk del .build-deps
ENTRYPOINT ["rsHRF"]