docker-rosariosis/Dockerfile

30 lines
1.2 KiB
Docker
Raw Normal View History

2015-05-16 17:42:04 +00:00
FROM ubuntu
MAINTAINER Larry Price <larry@larry-price.com>
2015-02-23 18:22:18 +00:00
ENV DEBIAN_FRONTEND noninteractive
2015-05-16 17:42:04 +00:00
RUN /usr/bin/lsb_release -a
2015-05-18 04:51:46 +00:00
RUN apt-get update && apt-get install git postgresql sendmail sendmail-bin supervisor apache2 libjpeg-turbo8-dev fontconfig \
2015-05-16 17:42:04 +00:00
libapache2-mod-php5 php5-pgsql php5-curl php5-xmlrpc xfonts-75dpi openssl build-essential \
2015-05-18 00:05:05 +00:00
xorg libssl-dev wget telnet nmap -y --force-yes
2015-05-16 17:42:04 +00:00
RUN wget http://downloads.sourceforge.net/wkhtmltopdf/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb
RUN dpkg -i wkhtmltox-0.12.2.1_linux-trusty-amd64.deb
RUN cp -f /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdf
2015-02-23 18:22:18 +00:00
RUN git clone https://github.com/francoisjacquet/rosariosis.git /usr/src/rosariosis
WORKDIR /usr/src/rosariosis
2015-05-16 17:42:04 +00:00
RUN git checkout v2.8.12
2015-02-23 18:22:18 +00:00
RUN rm -rf /var/www/html && mkdir -p /var/www && ln -s /usr/src/rosariosis/ /var/www/html && chmod 777 /var/www/html
2015-05-18 00:05:05 +00:00
COPY bin/init /init
COPY bin/start-apache2 /start-apache2
COPY conf/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY conf/config.inc.php /usr/src/rosariosis/config.inc.php
2015-02-23 18:22:18 +00:00
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
EXPOSE 80
ENTRYPOINT [ "/init" ]