14 lines
977 B
Docker
14 lines
977 B
Docker
FROM ubuntu:16.04
|
|
|
|
|
|
RUN apt-get update && 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
|
|
RUN git clone https://git.code.sf.net/p/tmconcordia/code
|
|
RUN cd code && mkdir build && cd build && ../cmake.sh && make && make install && ldconfig
|
|
RUN git clone https://git.wmi.amu.edu.pl/rjawor/concordia-server.git
|
|
RUN cd concordia-server && 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 |