diff options
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -42,16 +42,17 @@ RUN docker-php-ext-install pdo pdo_mysql mysqli # ------------------------------------------------------------------------------ # Copy local code to the container image. -COPY html /var/www/html +COPY public /var/www/public # Copy core files behind public COPY core /var/www/core -# Copy configuration files for the container -COPY docker /var/www/docker +# Copy storage folder structure behind public +COPY storage /var/www/storage +# Copy configuration files for the container (application based) +COPY docker /var/www/docker COPY tests /var/www/tests - COPY composer.json /var/www/ @@ -76,8 +77,14 @@ RUN locale-gen # Manage permitions in specific directories # ------------------------------------------------------------------------------ +# (make local storage directories writable) # RUN chown -R www-data:www-data /var/www -RUN chmod -R 757 /var/www/html/cache +RUN chmod -R 757 /var/www/public/cache +RUN chmod -R 757 /var/www/storage + + +# change apache's default-root to /var/www/public +RUN sed -ri -e 's!/var/www/html!/var/www/public!g' /etc/apache2/sites-available/*.conf # Use the PORT environment variable in Apache configuration files. |
