2019-05-30 11:55:59 +02:00
|
|
|
FROM ubuntu:16.04
|
|
|
|
|
|
|
|
|
|
|
|
# Set the locale
|
|
|
|
RUN apt-get update && apt-get install -y locales
|
|
|
|
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-11 12:54:11 +02:00
|
|
|
RUN apt-get install -y git cmake g++
|
2019-05-30 11:55:59 +02:00
|
|
|
RUN git clone https://git.wmi.amu.edu.pl/rjawor/concordia-server.git
|
2019-06-11 12:54:11 +02:00
|
|
|
RUN git clone https://github.com/clab/fast_align
|
2019-06-12 14:45:20 +02:00
|
|
|
RUN cd fast_align && mkdir build && cd build && cmake .. && make && cp fast_align ../../concordia-server/fast-aligner
|
2019-05-30 11:55:59 +02:00
|
|
|
|
2019-05-30 14:43:37 +02:00
|
|
|
|
2019-06-12 14:45:20 +02:00
|
|
|
CMD cd concordia-server/fast-aligner/ && make SRC_LANG=pl TRG_LANG=en CORPUS_NAME=opensubtitles_sample
|