2019-07-25 01:02:17 +02:00
|
|
|
FROM python:3-alpine
|
2017-01-22 21:01:16 +01:00
|
|
|
|
|
|
|
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 \
|
2018-11-29 22:56:52 +01:00
|
|
|
lapack
|
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 \
|
2018-07-06 19:10:09 +02:00
|
|
|
openssl-dev \
|
2017-01-22 21:01:16 +01:00
|
|
|
&& 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
|