Speed up Docker builds with a single image and parallel deps.

Build app once for queue/reverb, run Composer and npm in parallel with cache mounts, and skip redundant vite npm ci on restart.
This commit is contained in:
ben
2026-08-12 20:20:06 +02:00
parent c17f8fb506
commit 6bc5a20606
5 changed files with 46 additions and 29 deletions
+3 -1
View File
@@ -39,7 +39,9 @@ services:
image: node:22-bookworm
container_name: andytranscribe-vite
working_dir: /app
command: sh -c "npm ci && npm run dev -- --host 0.0.0.0 --port 5173"
command: >
sh -c "if [ ! -x node_modules/.bin/vite ]; then npm ci; fi;
npm run dev -- --host 0.0.0.0 --port 5173"
ports:
- "${VITE_HOST_PORT:-5173}:5173"
environment: