concordia-aligner/Dockerfile

21 lines
1.3 KiB
Docker
Raw Normal View History

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-05-30 14:43:37 +02:00
RUN apt-get install -y git libfcgi-dev libpq-dev python3-psycopg2 nginx php apache2 libapache2-mod-php spawn-fcgi cmake g++ libboost-dev libboost-serialization-dev libboost-test-dev libboost-filesystem-dev libboost-system-dev libboost-program-options-dev libboost-iostreams-dev libboost-regex-dev libboost-locale-dev liblog4cpp5-dev libconfig++-dev libconfig-dev libpcre3-dev mono-complete python3-requests
RUN git clone https://git.code.sf.net/p/tmconcordia/code
RUN cd code && mkdir build && cd build && ../cmake.sh && make && make install && ldconfig
2019-05-30 11:55:59 +02:00
RUN git clone https://git.wmi.amu.edu.pl/rjawor/concordia-server.git
2019-05-30 14:43:37 +02:00
RUN cd concordia-server && mkdir index && mkdir build && cd build && ../cmake.sh && make
2019-05-30 11:55:59 +02:00
2019-05-30 14:43:37 +02:00
COPY fcgi_concordia /etc/nginx/sites-available
RUN rm /etc/nginx/sites-enabled/default
RUN ln -s /etc/nginx/sites-available/fcgi_concordia /etc/nginx/sites-enabled/fcgi_concordia
#CMD /usr/sbin/nginx -g "daemon on;" && sleep 4 && sh concordia-server/scripts/backgroundstart.sh && cd concordia-server/fast-aligner/ && make SRC_LANG=pl TRG_LANG=en CORPUS_NAME=opensubtitles_sample