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 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 automake libtool libcurl4-openssl-dev RUN git clone https://git.wmi.amu.edu.pl/rjawor/concordia-library.git RUN cd concordia-library && mkdir build && cd build && ../cmake.sh && make && make install && ldconfig RUN git clone https://github.com/mrtazz/restclient-cpp.git RUN cd restclient-cpp && ./autogen.sh && make install && ldconfig RUN git clone https://git.wmi.amu.edu.pl/rjawor/concordia-server.git RUN cd concordia-server && mkdir index && mkdir build && cd build && ../cmake.sh && make 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/simplestart.sh