2015-02-23 18:22:18 +00:00
|
|
|
FROM debian:jessie
|
2015-02-23 19:09:34 +00:00
|
|
|
MAINTAINER Larry Price <larry@larry-price.com>
|
2015-02-23 18:22:18 +00:00
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
2015-02-23 19:19:30 +00:00
|
|
|
RUN apt-get update && apt-get install git postgresql sendmail sendmail-bin wkhtmltopdf supervisor apache2 libapache2-mod-php5 php5-pgsql -y --force-yes
|
2015-02-23 18:22:18 +00:00
|
|
|
|
|
|
|
RUN service postgresql start
|
|
|
|
|
|
|
|
RUN git clone https://github.com/francoisjacquet/rosariosis.git /usr/src/rosariosis
|
2015-02-23 20:07:06 +00:00
|
|
|
WORKDIR /usr/src/rosariosis
|
|
|
|
RUN git checkout 2.7.4
|
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
|
|
|
|
|
|
|
|
ADD bin/init /init
|
|
|
|
ADD bin/start-apache2 /start-apache2
|
|
|
|
ADD conf/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
|
|
|
ADD conf/config.inc.php /usr/src/rosariosis/config.inc.php
|
|
|
|
|
|
|
|
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
|
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/init" ]
|