diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..89740c7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,28 @@ +FROM php:7.0-apache +MAINTAINER Inti Gabriel + +RUN a2enmod rewrite +ENV APACHE_RUN_USER=www-data APACHE_RUN_GROUP=www-data APACHE_LOG_DIR=/var/log/apache2 APACHE_LOCK_DIR=/var/lock/apache2 APACHE_PID_FILE=/var/run/apache2.pid + +COPY apache-config.conf /etc/apache2/sites-enabled/000-default.conf +COPY apaxy/ /var/www/html/ +RUN mv /var/www/html/htaccess.txt /var/www/html/.htaccess && \ +mv /var/www/html/theme/htaccess.txt /var/www/html/theme/.htaccess && \ +rm /var/www/html/index.html && \ +touch /var/www/html/example.gif && \ +touch /var/www/html/example.jpg && \ +touch /var/www/html/example.txt && \ +touch /var/www/html/example.md && \ +touch /var/www/html/example && \ +touch /var/www/html/example.mp4 && \ +touch /var/www/html/example.zip && \ +touch /var/www/html/example.doc && \ +touch /var/www/html/example.xls && \ +touch /var/www/html/example.pdf && \ +touch /var/www/html/example.tex && \ +touch /var/www/html/example.c && \ +touch /var/www/html/example.mp3 + +EXPOSE 80 + +CMD /usr/sbin/apache2ctl -D FOREGROUND diff --git a/README.md b/README.md index b63fd9d..9dd6605 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,13 @@ Let's assume you have a folder named `share` in your server root directory (the * Rename `htaccess.txt` to `.htaccess` in both the `/share` and `/share/theme` folders. * [Treat yo'self](http://25.media.tumblr.com/tumblr_lw7q28y0Mz1qanm80o1_500.gif), you're done. +##Docker iamges + +A [localhost:8080](local Demo) can be started with docker. +`docker-compose build +docker-compose up` + + ##Apaxy themes If you'd like to alter the default Apaxy theme, look in the `/theme` folder and you'll find the following files: diff --git a/apache-config.conf b/apache-config.conf new file mode 100644 index 0000000..03c2f98 --- /dev/null +++ b/apache-config.conf @@ -0,0 +1,10 @@ + + DocumentRoot /var/www/html + + + Options Indexes FollowSymLinks MultiViews + AllowOverride All + Order deny,allow + Allow from all + + diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..b5fbcb3 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,5 @@ +apaxy: + build: . + ports: + - "8080:80" +