concordia-docker/concordia-preprocessor/Dockerfile

18 lines
622 B
Docker
Raw Normal View History

2019-06-04 13:00:06 +02:00
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
2019-06-24 14:14:02 +02:00
RUN apt-get install -y git python3 python3-pip
2019-06-10 14:31:17 +02:00
RUN pip3 install flask flask_restful gunicorn requests spacy
RUN python3 -m spacy download en
2019-06-04 13:00:06 +02:00
RUN git clone https://git.wmi.amu.edu.pl/rjawor/concordia-preprocessor.git
2019-06-26 13:46:13 +02:00
RUN cd /concordia-preprocessor/dictionaries && ./generate_dict.py
2019-06-04 13:00:06 +02:00
2019-06-26 13:46:13 +02:00
CMD cd concordia-preprocessor && ./start_concordia_preprocessor.sh