dockerfiles/foss-heartbeat/Dockerfile
Jess Frazelle b705c9662b fix foss-heartbeat and couchpotato
Signed-off-by: Jess Frazelle <acidburn@github.com>
2018-11-29 16:56:52 -05:00

28 lines
598 B
Docker

FROM python:2-alpine
RUN apk add --no-cache \
ca-certificates \
bash \
gfortran \
openjdk8-jre-base \
lapack
# Install the requirements
RUN set -x \
&& apk add --no-cache --virtual .build-deps \
build-base \
git \
lapack-dev \
libffi-dev \
openssl-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