fix: Web Dockerfile handle empty public dir, add .gitkeep
Some checks failed
CI / E2E Tests (push) Has been skipped
Deploy / Build API Image (push) Failing after 12s
Deploy / Build AI Services Image (push) Failing after 13s
Deploy / Deploy to Staging (push) Has been skipped
CI / Lint → Typecheck → Test → Build (22) (push) Failing after 11s
Deploy / Build Web Image (push) Failing after 12s
E2E Tests / Playwright E2E (push) Failing after 9s
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
Some checks failed
CI / E2E Tests (push) Has been skipped
Deploy / Build API Image (push) Failing after 12s
Deploy / Build AI Services Image (push) Failing after 13s
Deploy / Deploy to Staging (push) Has been skipped
CI / Lint → Typecheck → Test → Build (22) (push) Failing after 11s
Deploy / Build Web Image (push) Failing after 12s
E2E Tests / Playwright E2E (push) Failing after 9s
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
- Reorder COPY to create public dir first (mkdir -p) - Copy standalone + static before public (which may be empty) - Add .gitkeep so Git tracks empty public directory Co-Authored-By: Claude Opus 4 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -27,9 +27,12 @@ ENV NEXT_TELEMETRY_DISABLED=1
|
||||
ENV HOSTNAME=0.0.0.0
|
||||
ENV PORT=3000
|
||||
|
||||
COPY --from=build --chown=node:node /app/apps/web/public ./public
|
||||
# Ensure public dir exists (may be empty) then copy Next.js standalone output
|
||||
RUN mkdir -p ./public
|
||||
COPY --from=build --chown=node:node /app/apps/web/.next/standalone ./
|
||||
COPY --from=build --chown=node:node /app/apps/web/.next/static ./.next/static
|
||||
# Copy public assets if any exist (may be empty)
|
||||
COPY --from=build --chown=node:node /app/apps/web/public ./public
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
|
||||
0
apps/web/public/.gitkeep
Normal file
0
apps/web/public/.gitkeep
Normal file
Reference in New Issue
Block a user