Update docker files to build correctly in fresh container

This commit is contained in:
NH Gooi
2024-04-25 16:26:24 +02:00
parent 34ca1486bd
commit e0c11c50f5
4 changed files with 45 additions and 7 deletions

View File

@@ -27,7 +27,7 @@ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
ADD docker/apache.conf /etc/apache2/sites-enabled/000-default.conf
WORKDIR /var/www/html
COPY . /var/www/html
# COPY . /var/www/html
RUN mkdir -p storage/framework/{sessions,views,cache,cache/data} && \
chown -R www-data:www-data storage/framework && \
@@ -35,4 +35,4 @@ RUN mkdir -p storage/framework/{sessions,views,cache,cache/data} && \
# RUN php artisan cache:clear && \
# php artisan config:clear && \
# php artisan view:clear
# php artisan view:clear