Select Git revision
Dockerfile.old 2.31 KiB
################################################
# NLP Tools for Polish from G4.19 Group
# Wroclaw University of Science and Technology
#
# Contact: Tomasz.Walkowiak@pwr.edu.pl
#
# Morphodita service
###############################################
FROM ubuntu:16.04 as builder
RUN apt-get update && \
apt-get install -y apt-utils && \
apt-get install -y iputils-ping && \
apt-get install -y git && \
apt-get install -y subversion && \
apt-get install -y wget nano mc zip unzip && \
apt-get install -y vim ranger atool htop curl && \
apt-get install -y locales locales-all && \
apt-get install -y cmake && \
apt-get install -y g++ && \
apt-get install -y netcat && \
apt-get install -y libboost-all-dev
##################################
## UTF-8
##################################
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
##################################
# Install morphodita service and dependencies
##################################
RUN mkdir /home/install
WORKDIR /home/install
## AMQP-CPP
WORKDIR /home/install
RUN wget https://github.com/CopernicaMarketingSoftware/AMQP-CPP/archive/v2.8.0.tar.gz && \
tar -xvf v2.8.0.tar.gz && \
cd AMQP-CPP-2.8.0 && \
make -j4 && \
make install PREFIX=/install/ampq-cpp/usr/local && \
cp -r /install/ampq-cpp/* / && \
ldconfig && \
rm -r ../AMQP-CPP-2.8.0 && \
rm ../v2.8.0.tar.gz
## CCP_NLP
WORKDIR /home/install
RUN svn co http://svn.clarin-pl.eu/svn/nlpservices/src/cpp/nlp && \
cd nlp && \
mkdir build && \
cd build && \
cmake .. && \
make -j4 && \
make install DESTDIR=/install/ccp_nlp && \
cp -r /install/ccp_nlp/* / && \
ldconfig && \
rm -r ../../nlp
RUN svn co http://svn.clarin-pl.eu/svn/nlpservices/src/cpp/morphodita && \
cd morphodita && \
git clone http://nlp.pwr.wroc.pl/g419-morphodita.git && \
cd g419-morphodita/src && \
make lib && \
cd ../.. && \
mkdir build && \
cd build && \
cmake .. && \
make -j4
FROM ubuntu:16.04
COPY --from=builder /install/ampq-cpp /
COPY --from=builder /install/ccp_nlp /
RUN apt-get update && apt-get install -y libboost-all-dev
RUN mkdir /home/worker
WORKDIR /home/worker
COPY --from=builder /home/install/morphodita/bin/morphodita morphodita_service