docker: run composer install at build time instead of in the entrypoint
- 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>
This commit is contained in:
1 parent
a11dca62a4
commit
2ddcb1b6b0
3 files changed
+23
-11
No files matched your search
@@ -3,3 +3,4 @@
|
||||
*.scss linguist-vendored
|
||||
*.js linguist-vendored
|
||||
CHANGELOG.md export-ignore
|
||||
*.sh text eol=lf
|
||||
Reference in new issue
Block a user