From bb5851c7afa6d066422c10433d4cc1df20b06ba6 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Sun, 22 Jan 2017 12:01:16 -0800 Subject: [PATCH] foss-heartbeat Signed-off-by: Jess Frazelle --- foss-heartbeat/Dockerfile | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 foss-heartbeat/Dockerfile diff --git a/foss-heartbeat/Dockerfile b/foss-heartbeat/Dockerfile new file mode 100644 index 0000000..64d1173 --- /dev/null +++ b/foss-heartbeat/Dockerfile @@ -0,0 +1,41 @@ +FROM alpine:latest + +RUN apk add --no-cache \ + ca-certificates \ + gfortran \ + lapack \ + python + +# Install the requirements +RUN set -x \ + && apk add --no-cache --virtual .build-deps \ + build-base \ + git \ + lapack-dev \ + libffi-dev \ + libressl-dev \ + python-dev \ + py2-pip \ + && 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 + +# Install Stanford CoreNLP +RUN set -x \ + && apk add --no-cache --virtual .build-deps \ + curl \ + git \ + && git clone --depth 1 https://github.com/stanfordnlp/CoreNLP.git /usr/src/CoreNLP \ + && ( \ + cd /usr/src/CoreNLP/liblocal \ + && curl -sSLO http://nlp.stanford.edu/software/stanford-corenlp-models-current.jar \ + && curl -sSLO http://nlp.stanford.edu/software/stanford-english-corenlp-models-current.jar \ + ) \ + && apk del .build-deps + +WORKDIR /usr/src/foss-heartbeat