Bump versions

This commit is contained in:
Patrick Jentsch 2020-04-06 09:21:38 +02:00
parent 30d127f3af
commit 68e86338d4
2 changed files with 9 additions and 14 deletions

View File

@ -1,28 +1,22 @@
FROM debian:9-slim FROM debian:10-slim
# Define image metadata
LABEL maintainer="inf_sfb1288@lists.uni-bielefeld.de" LABEL maintainer="inf_sfb1288@lists.uni-bielefeld.de"
ENV LANG=C.UTF-8 ENV LANG=C.UTF-8
# Install prerequisites
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends \
build-essential \
python2.7 \ python2.7 \
python3.5 \ python3.7 \
python3-dev \
python3-pip \ python3-pip \
zip \ zip \
&& rm -rf /var/lib/apt/lists/* \
&& pip3 install \ && pip3 install \
setuptools \
wheel \
chardet chardet
ENV PYFLOW_VERSION=1.1.20 ENV PYFLOW_VERSION=1.1.20
ADD "https://github.com/Illumina/pyflow/releases/download/v${PYFLOW_VERSION}/pyflow-${PYFLOW_VERSION}.tar.gz" . ADD "https://github.com/Illumina/pyflow/releases/download/v${PYFLOW_VERSION}/pyflow-${PYFLOW_VERSION}.tar.gz" .
RUN tar -xzf "pyflow-${PYFLOW_VERSION}.tar.gz" \ RUN tar -xzf "pyflow-${PYFLOW_VERSION}.tar.gz" \
@ -33,11 +27,10 @@ RUN tar -xzf "pyflow-${PYFLOW_VERSION}.tar.gz" \
"pyflow-${PYFLOW_VERSION}" \ "pyflow-${PYFLOW_VERSION}" \
"pyflow-${PYFLOW_VERSION}.tar.gz" "pyflow-${PYFLOW_VERSION}.tar.gz"
ENV SPACY_VERSION=2.2.4 ENV SPACY_VERSION=2.2.4
ENV SPACY_MODELS_VERSION=2.2.5 ENV SPACY_MODELS_VERSION=2.2.5
RUN pip3 install "spacy==${SPACY_VERSION}" \
RUN pip3 install \
"spacy==${SPACY_VERSION}" \
&& python3 -m spacy download "de_core_news_sm-${SPACY_MODELS_VERSION}" --direct \ && python3 -m spacy download "de_core_news_sm-${SPACY_MODELS_VERSION}" --direct \
&& python3 -m spacy download "el_core_news_sm-${SPACY_MODELS_VERSION}" --direct \ && python3 -m spacy download "el_core_news_sm-${SPACY_MODELS_VERSION}" --direct \
&& python3 -m spacy download "en_core_web_sm-${SPACY_MODELS_VERSION}" --direct \ && python3 -m spacy download "en_core_web_sm-${SPACY_MODELS_VERSION}" --direct \
@ -48,7 +41,9 @@ RUN pip3 install \
&& python3 -m spacy download "pt_core_news_sm-${SPACY_MODELS_VERSION}" --direct && python3 -m spacy download "pt_core_news_sm-${SPACY_MODELS_VERSION}" --direct
# Install NLP pipeline RUN rm -rf /var/lib/apt/lists/*
COPY nlp /usr/local/bin COPY nlp /usr/local/bin
COPY spacy-nlp /usr/local/bin COPY spacy-nlp /usr/local/bin

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python3.5 #!/usr/bin/env python3.7
# coding=utf-8 # coding=utf-8
from argparse import ArgumentParser from argparse import ArgumentParser