concordia-docker/concordia-preprocessor/Dockerfile
2019-06-26 12:32:55 +02:00

18 lines
619 B
Docker

FROM ubuntu:16.04
# Set the locale
RUN apt-get update && apt-get install -y locales software-properties-common
RUN sed -i -e 's/# pl_PL.UTF-8 UTF-8/pl_PL.UTF-8 UTF-8/' /etc/locale.gen && locale-gen
ENV LANG pl_PL.UTF-8
ENV LANGUAGE pl_PL:pl
ENV LC_ALL pl_PL.UTF-8
RUN apt-get install -y git python3 python3-pip
RUN pip3 install flask flask_restful gunicorn requests spacy
RUN python3 -m spacy download en
RUN git clone https://git.wmi.amu.edu.pl/rjawor/concordia-preprocessor.git
RUN cd /concorda-preprocessor/dictionaries && ./generate_dict
#CMD cd concordia-preprocessor && ./start_concordia_preprocessor.sh