File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,10 +9,12 @@ npm-debug.log
99composer.phar
1010var /cache
1111var /logs
12+ var /log
1213var /sessions
1314.env
1415Dockerfile *
1516docker-compose * .yml
1617** /.DS_Store
1718** /Thumbs.db
1819vendor /
20+ public /build
Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ RUN chown -R www-data:www-data var public \
5959 && find var -type d -exec chmod 775 {} \; \
6060 && find var -type f -exec chmod 664 {} \;
6161
62+ # Build frontend assets once, during image build
63+ RUN composer run-script build-web-frontend-assets
64+
6265# Expose port and run Apache
6366EXPOSE 80
6467CMD ["apache2-foreground" ]
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ services:
3232 mkdir -p /var/www/html/var/cache/prod /var/www/html/var/log
3333 && chown -R www-data:www-data /var/www/html/var/cache /var/www/html/var/log
3434 && chmod -R ug+rwX /var/www/html/var/cache /var/www/html/var/log
35- && composer run-script build-web-frontend-assets
3635 && exec apache2-foreground
3736 "
3837
You can’t perform that action at this time.
0 commit comments