nlp/Dockerfile

44 lines
1.1 KiB
Docker
Raw Normal View History

2019-06-02 19:45:17 +00:00
FROM debian:9-slim
2019-02-06 15:58:17 +00:00
2019-05-20 09:28:51 +00:00
LABEL maintainer="inf_sfb1288@lists.uni-bielefeld.de"
2019-02-06 15:58:17 +00:00
2019-05-20 09:28:51 +00:00
ENV DEBIAN_FRONTEND=noninteractive
2019-02-06 15:58:17 +00:00
ENV LANG=C.UTF-8
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
python2.7 \
2019-05-20 09:28:51 +00:00
python3.5 \
2019-02-06 15:58:17 +00:00
python3-dev \
python3-pip \
python3-setuptools \
wget
# Install pyFlow
ENV PYFLOW_VERSION 1.1.20
RUN wget -nv https://github.com/Illumina/pyflow/releases/download/v"$PYFLOW_VERSION"/pyflow-"$PYFLOW_VERSION".tar.gz && \
tar -xzf pyflow-"$PYFLOW_VERSION".tar.gz && \
cd pyflow-"$PYFLOW_VERSION" && \
python2.7 setup.py build install && \
2019-05-20 09:28:51 +00:00
cd .. && \
2019-05-27 09:46:14 +00:00
rm -r pyflow-"$PYFLOW_VERSION" pyflow-"$PYFLOW_VERSION".tar.gz
2019-02-06 15:58:17 +00:00
# Install spaCy
RUN pip3 install wheel && pip3 install -U spacy && \
2019-06-02 19:45:17 +00:00
python3.5 -m spacy download de && \
python3.5 -m spacy download en && \
python3.5 -m spacy download es && \
python3.5 -m spacy download fr && \
python3.5 -m spacy download it && \
python3.5 -m spacy download pt
2019-02-06 15:58:17 +00:00
COPY nlp /usr/local/bin
COPY spacy_nlp /usr/local/bin
2019-06-02 19:41:21 +00:00
RUN mkdir /input /output && \
chmod a+rw /input /output
2019-06-02 19:38:47 +00:00
2019-05-20 09:28:51 +00:00
ENTRYPOINT ["nlp"]