Restructed project and added docker support.

This commit is contained in:
2018-03-21 19:17:31 +00:00
parent f42396d784
commit 89d164f615
63 changed files with 155 additions and 140 deletions

12
Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM php:7.0-apache
COPY . /srv/app
RUN chown -R www-data:www-data /srv/app
ENV APACHE_DOCUMENT_ROOT /srv/app/src
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
EXPOSE 80