Dockerfile 1015 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
FROM debian:6.0
MAINTAINER Son Nguyen <son.nguyen@catalyst.net.nz>

#VOLUME ["/var/www/html"]
#VOLUME ["/var/lib/sitedata"]

RUN echo "deb http://archive.debian.org/debian/ squeeze main contrib" > /etc/apt/sources.list
RUN apt-get update && \
    apt-get -y install \
      sudo \
      cron \
      apache2 \
      php5 \
      php5-cli\
      curl\
      libapache2-mod-php5 \
      php5-pgsql \
      php5-mysql \
      php5-gd \
      php5-curl \
      php5-json \
      php5-ldap \
      php5-xmlrpc \
      php5-memcache\
      php5-xdebug \
      apt-utils \
      debconf-utils
RUN echo "mysql-server-5.1 mysql-server/root_password password mahara" | debconf-set-selections
RUN echo "mysql-server-5.1 mysql-server/root_password_again password mahara" | debconf-set-selections
RUN apt-get -y install mysql-server
RUN apt-get clean

COPY ./apache2/default /etc/apache2/sites-available/default
COPY run /usr/local/bin/
RUN chmod +x /usr/local/bin/run
RUN a2enmod rewrite

EXPOSE 80

CMD ["/usr/local/bin/run"]