fix: Web Dockerfile — use standalone root directly, not apps/web subdir
Some checks failed
CI / Lint → Typecheck → Test → Build (22) (push) Failing after 7s
CI / E2E Tests (push) Has been skipped
Deploy / Build API Image (push) Failing after 10s
Deploy / Build Web Image (push) Failing after 9s
Deploy / Build AI Services Image (push) Failing after 9s
E2E Tests / Playwright E2E (push) Failing after 12s
Deploy / Deploy to Production (push) Has been skipped
Deploy / Smoke Test Production (push) Has been skipped
Deploy / Deploy to Staging (push) Has been skipped
Deploy / Smoke Test Staging (push) Has been skipped
Deploy / Rollback Production (push) Has been skipped
Deploy / Rollback Staging (push) Has been skipped
Some checks failed
CI / Lint → Typecheck → Test → Build (22) (push) Failing after 7s
CI / E2E Tests (push) Has been skipped
Deploy / Build API Image (push) Failing after 10s
Deploy / Build Web Image (push) Failing after 9s
Deploy / Build AI Services Image (push) Failing after 9s
E2E Tests / Playwright E2E (push) Failing after 12s
Deploy / Deploy to Production (push) Has been skipped
Deploy / Smoke Test Production (push) Has been skipped
Deploy / Deploy to Staging (push) Has been skipped
Deploy / Smoke Test Staging (push) Has been skipped
Deploy / Rollback Production (push) Has been skipped
Deploy / Rollback Staging (push) Has been skipped
Next.js standalone output from `cd apps/web && next build` puts server.js + node_modules at the standalone root, not in apps/web/. Co-Authored-By: Claude Opus 4 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -27,12 +27,11 @@ ENV NEXT_TELEMETRY_DISABLED=1
|
|||||||
ENV HOSTNAME=0.0.0.0
|
ENV HOSTNAME=0.0.0.0
|
||||||
ENV PORT=3000
|
ENV PORT=3000
|
||||||
|
|
||||||
# Ensure public dir exists (may be empty) then copy Next.js standalone output
|
# Copy Next.js standalone output
|
||||||
# In monorepo, standalone outputs to: .next/standalone/ (root with node_modules)
|
# In monorepo with `cd apps/web && next build`, standalone contains:
|
||||||
# and .next/standalone/apps/web/ (server.js + .next/)
|
# .next/standalone/ → root with server.js + node_modules/ + package.json
|
||||||
RUN mkdir -p ./public
|
RUN mkdir -p ./public
|
||||||
COPY --from=build --chown=node:node /app/apps/web/.next/standalone/node_modules ./node_modules
|
COPY --from=build --chown=node:node /app/apps/web/.next/standalone ./
|
||||||
COPY --from=build --chown=node:node /app/apps/web/.next/standalone/apps/web ./
|
|
||||||
COPY --from=build --chown=node:node /app/apps/web/.next/static ./.next/static
|
COPY --from=build --chown=node:node /app/apps/web/.next/static ./.next/static
|
||||||
# Copy public assets if any exist (may be empty)
|
# Copy public assets if any exist (may be empty)
|
||||||
COPY --from=build --chown=node:node /app/apps/web/public ./public
|
COPY --from=build --chown=node:node /app/apps/web/public ./public
|
||||||
|
|||||||
Reference in New Issue
Block a user