fix: Web Dockerfile — remove invalid COPY with shell redirect
Some checks failed
CI / Lint → Typecheck → Test → Build (22) (push) Failing after 20s
CI / E2E Tests (push) Has been skipped
Deploy / Build API Image (push) Failing after 21s
Deploy / Build Web Image (push) Failing after 10s
Deploy / Build AI Services Image (push) Failing after 13s
E2E Tests / Playwright E2E (push) Failing after 17s
Deploy / Deploy to Staging (push) Has been skipped
Deploy / Smoke Test Staging (push) Has been skipped
Deploy / Deploy to Production (push) Has been skipped
Deploy / Smoke Test Production (push) Has been skipped
Deploy / Rollback Staging (push) Has been skipped
Deploy / Rollback Production (push) Has been skipped

Dockerfile COPY doesn't support shell redirects (2>/dev/null || true).
With node-linker=hoisted, all deps are in root node_modules anyway.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ho Ngoc Hai
2026-04-14 14:24:58 +07:00
parent 09fdc5ccbe
commit 35b64ae5f5

View File

@@ -16,7 +16,6 @@ RUN pnpm install --frozen-lockfile --filter @goodgo/web...
FROM base AS build
COPY --from=deps /app/.npmrc ./
COPY --from=deps /app/node_modules ./node_modules
COPY --from=deps /app/apps/web/node_modules ./apps/web/node_modules 2>/dev/null || true
COPY tsconfig.base.json ./
COPY apps/web/ apps/web/
RUN cd apps/web && npx next build