- New 'assets' stage in the Dockerfile builds style.min.css and
functions.min.js from the sources (npm run build:min); they are no
longer committed, so they can't go stale anymore
- Production (APP_DEBUG off) loads the minified files, local development
the readable ones, both with a cache-busting version (AssetHelper,
Asset::url() in the layout)
- Source maps are excluded from the image
- Remove unused assets: public/css/old, public/js/old and unused copies
of jQuery, wavesurfer, prettyPhoto (min) and mediaplayer_with_plugins
- npm scripts: build:css (committed CSS), build:min (Docker build);
sass-minify scripts removed
- readme: how the CSS/JS build works
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Set ownership of storage, bootstrap/cache and public/assets/vendor at
build time
- Entrypoint only creates/chowns directories when running as root
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- npm ci in a cached layer (package.json/lock only), setup-vendor.js after
copying the app
- Entrypoint only installs/copies when node_modules/ or public/assets/vendor
is missing or empty (e.g. hidden by a volume)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Install dependencies in a cached layer (composer.json/lock only), then
dump the optimized autoloader after copying the app
- Entrypoint only runs composer install if vendor/ is missing (e.g. when
the app directory is mounted as a volume)
- Force LF for *.sh so the entrypoint works when built from a Windows checkout
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>