forked from panamax-docker/panamax-docker-apache-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
18 lines (14 loc) · 773 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM ubuntu:quantal
MAINTAINER Chaitanya Akkineni <chaitanya.akkineni@savvis.com>
# Install packages
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y upgrade && DEBIAN_FRONTEND=noninteractive apt-get -y install supervisor pwgen
RUN apt-get -y install git apache2 libapache2-mod-php5 php5-mysql php5-gd php-pear php-apc curl && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin && mv /usr/local/bin/composer.phar /usr/local/bin/composer
# Add image configuration and scripts
ADD start.sh /start.sh
ADD run.sh /run.sh
RUN chmod 755 /*.sh
ADD supervisord-apache2.conf /etc/supervisor/conf.d/supervisord-apache2.conf
# Configure /app folder
RUN mkdir -p /app && rm -fr /var/www && ln -s /app /var/www
EXPOSE 80
CMD ["/run.sh"]