`pnpm install --frozen-lockfile --prod` runs the package.json `prepare` script (`husky`) but in --prod mode husky (a devDependency) isn't installed → "sh: husky: not found" → install fails → Docker build dies. `ENV HUSKY=0` is husky 9+'s official skip mechanism for CI/Docker contexts. Adding it before the prod install in Dockerfile.worker. The main Dockerfile is unaffected because its runner stage copies the prebuilt `.next/standalone` rather than running pnpm install. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2.2 KiB
2.2 KiB