Permalink
Browse files

started working on Dockerfile. Only homepage works for now.

  • Loading branch information...
cloutier committed Jun 2, 2016
1 parent 627fa3e commit a5f7beae045eed3b2df1cbf43d2a6ae8f8c89f3e
Showing with 38 additions and 0 deletions.
  1. +23 −0 Dockerfile
  2. +15 −0 docker/000-default.conf
View
@@ -0,0 +1,23 @@
+FROM ubuntu:16.04
+
+MAINTAINER vincent@cloutier.co
+
+RUN apt update && apt install -y apache2 libapache2-mod-php7.0 php7.0 php7.0-xml php7.0-curl php7.0-cli php7.0-pdo php7.0-mysql
+
+ENV APACHE_RUN_USER www-data
+ENV APACHE_RUN_GROUP www-data
+ENV APACHE_LOG_DIR /var/log/apache2
+RUN a2enmod rewrite
+
+# forward request and error logs to docker log collector
+RUN ln -sf /dev/stdout /var/log/apache2/access.log
+RUN ln -sf /dev/stderr /var/log/apache2/error.log
+
+ADD docker/000-default.conf /etc/apache2/sites-enabled/000-default.conf
+
+ENTRYPOINT ["apache2ctl", "-D", "FOREGROUND"]
+
+EXPOSE 80
+
+ADD . /var/www/html/
+RUN chmod -R 775 /var/www/
View
@@ -0,0 +1,15 @@
+<VirtualHost *:80>
+
+ ServerAdmin webmaster@localhost
+ DocumentRoot /var/www/html/app
+
+ ErrorLog ${APACHE_LOG_DIR}/error.log
+ CustomLog ${APACHE_LOG_DIR}/access.log combined
+
+ <Directory /var/www/html/app>
+ Options Indexes FollowSymLinks MultiViews
+ AllowOverride All
+ Order allow,deny
+ allow from all
+ </Directory>
+</VirtualHost>

0 comments on commit a5f7bea

Please sign in to comment.