mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nlp.git
synced 2024-12-25 20:24:18 +00:00
Use new Dockerfile structure
This commit is contained in:
parent
5329446277
commit
f02c0953bf
20
Dockerfile
20
Dockerfile
@ -7,28 +7,30 @@ LABEL authors="Patrick Jentsch <p.jentsch@uni-bielefeld.de>, Stephan Porada <spo
|
||||
ENV LANG=C.UTF-8
|
||||
|
||||
|
||||
RUN apt-get update
|
||||
|
||||
|
||||
# Install pipeline dependencies #
|
||||
## Install pyFlow ##
|
||||
ENV PYFLOW_RELEASE=1.1.20
|
||||
ADD "https://github.com/Illumina/pyflow/releases/download/v${PYFLOW_RELEASE}/pyflow-${PYFLOW_RELEASE}.tar.gz" .
|
||||
RUN tar -xzf "pyflow-${PYFLOW_RELEASE}.tar.gz" \
|
||||
&& cd "pyflow-${PYFLOW_RELEASE}" \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
&& apt-get update \
|
||||
&& apt-get install --no-install-recommends --yes \
|
||||
python2.7 \
|
||||
&& rm -r /var/lib/apt/lists/* \
|
||||
&& python2.7 setup.py build install \
|
||||
&& cd .. \
|
||||
&& rm -r "pyflow-${PYFLOW_RELEASE}" "pyflow-${PYFLOW_RELEASE}.tar.gz"
|
||||
|
||||
|
||||
## Install Pipeline ##
|
||||
## Install spaCy ##
|
||||
ENV SPACY_VERSION=2.3.2
|
||||
ENV SPACY_MODELS_VERSION=2.3.0
|
||||
RUN apt-get install -y --no-install-recommends \
|
||||
RUN apt-get update \
|
||||
&& apt-get install --no-install-recommends --yes \
|
||||
python3.7 \
|
||||
python3-pip \
|
||||
zip \
|
||||
&& rm -r /var/lib/apt/lists/* \
|
||||
&& pip3 install \
|
||||
chardet \
|
||||
setuptools \
|
||||
@ -42,12 +44,10 @@ RUN apt-get install -y --no-install-recommends \
|
||||
&& python3 -m spacy download "it_core_news_md-${SPACY_MODELS_VERSION}" --direct \
|
||||
&& python3 -m spacy download "nl_core_news_md-${SPACY_MODELS_VERSION}" --direct \
|
||||
&& python3 -m spacy download "pt_core_news_md-${SPACY_MODELS_VERSION}" --direct
|
||||
COPY nlp /usr/local/bin
|
||||
COPY spacy-nlp /usr/local/bin
|
||||
|
||||
|
||||
## Cleanup ##
|
||||
RUN rm -r /var/lib/apt/lists/*
|
||||
## Install Pipeline ##
|
||||
COPY nlp spacy-nlp /usr/local/bin/
|
||||
|
||||
|
||||
ENTRYPOINT ["nlp"]
|
||||
|
Loading…
Reference in New Issue
Block a user