This commit is contained in:
Patrick Jentsch
2019-05-20 11:28:51 +02:00
parent ed26d24776
commit 5b7bc2a840
3 changed files with 128 additions and 104 deletions

View File

@ -1,7 +1,8 @@
FROM debian:stretch-slim
MAINTAINER Patrick Jentsch <p.jentsch@uni-bielefeld.de>
LABEL maintainer="inf_sfb1288@lists.uni-bielefeld.de"
ENV DEBIAN_FRONTEND=noninteractive
ENV LANG=C.UTF-8
RUN apt-get update && \
@ -9,22 +10,20 @@ RUN apt-get update && \
build-essential \
ca-certificates \
python2.7 \
python3 \
python3.5 \
python3-dev \
python3-pip \
python3-setuptools \
wget
WORKDIR /root
# 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 && \
rm pyflow-"$PYFLOW_VERSION".tar.gz && \
cd pyflow-"$PYFLOW_VERSION" && \
python2.7 setup.py build install && \
cd ..
cd .. && \
rm -r pyflow-"$PYFLOW_VERSION".tar.gz pyflow-"$PYFLOW_VERSION"
# Install spaCy
RUN pip3 install wheel && pip3 install -U spacy && \
@ -34,9 +33,8 @@ RUN pip3 install wheel && pip3 install -U spacy && \
python3 -m spacy download fr && \
python3 -m spacy download pt
RUN mkdir files_for_nlp files_from_nlp
COPY nlp /usr/local/bin
COPY spacy_nlp /usr/local/bin
CMD ["/bin/bash"]
ENTRYPOINT ["nlp"]
CMD ["--help"]