2017-01-22 21:01:16 +01:00
|
|
|
FROM alpine:latest
|
|
|
|
|
|
|
|
RUN apk add --no-cache \
|
|
|
|
ca-certificates \
|
2017-01-22 22:12:10 +01:00
|
|
|
bash \
|
2017-01-22 21:01:16 +01:00
|
|
|
gfortran \
|
2017-01-22 22:12:10 +01:00
|
|
|
openjdk8-jre-base \
|
2017-01-22 21:01:16 +01:00
|
|
|
lapack \
|
2017-01-22 22:21:45 +01:00
|
|
|
python \
|
|
|
|
py2-pip
|
2017-01-22 21:01:16 +01:00
|
|
|
|
|
|
|
# Install the requirements
|
|
|
|
RUN set -x \
|
|
|
|
&& apk add --no-cache --virtual .build-deps \
|
|
|
|
build-base \
|
|
|
|
git \
|
|
|
|
lapack-dev \
|
|
|
|
libffi-dev \
|
|
|
|
libressl-dev \
|
|
|
|
python-dev \
|
|
|
|
&& ln -s /usr/include/locale.h /usr/include/xlocale.h \
|
|
|
|
&& git clone --depth 1 https://github.com/sarahsharp/foss-heartbeat.git /usr/src/foss-heartbeat \
|
|
|
|
&& ( \
|
|
|
|
cd /usr/src/foss-heartbeat \
|
|
|
|
&& pip install -r requirements.txt \
|
|
|
|
&& pip install statistics \
|
|
|
|
) \
|
|
|
|
&& apk del .build-deps
|
|
|
|
|
|
|
|
WORKDIR /usr/src/foss-heartbeat
|