From 9ff1e698601a03692a2b34daf936ca9fbc7c9a24 Mon Sep 17 00:00:00 2001 From: Jason Woltje Date: Wed, 11 Feb 2026 20:54:37 -0600 Subject: [PATCH] chore(api): remove debug statements from Dockerfile Remove temporary debug RUN layers that were added during initial build troubleshooting. These add build time and leak directory structure into build logs unnecessarily. Co-Authored-By: Claude Opus 4.6 --- apps/api/Dockerfile | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/apps/api/Dockerfile b/apps/api/Dockerfile index ba0c5de..6f71b2d 100644 --- a/apps/api/Dockerfile +++ b/apps/api/Dockerfile @@ -46,25 +46,9 @@ COPY --from=deps /app/packages/shared/node_modules ./packages/shared/node_module COPY --from=deps /app/packages/config/node_modules ./packages/config/node_modules COPY --from=deps /app/apps/api/node_modules ./apps/api/node_modules -# Debug: Show what we have before building -RUN echo "=== Pre-build directory structure ===" && \ - echo "--- packages/config/typescript ---" && ls -la packages/config/typescript/ && \ - echo "--- packages/shared (top level) ---" && ls -la packages/shared/ && \ - echo "--- packages/shared/src ---" && ls -la packages/shared/src/ && \ - echo "--- apps/api (top level) ---" && ls -la apps/api/ && \ - echo "--- apps/api/src (exists?) ---" && ls apps/api/src/*.ts | head -5 && \ - echo "--- node_modules/@mosaic (symlinks?) ---" && ls -la node_modules/@mosaic/ 2>/dev/null || echo "No @mosaic in node_modules" - # Build the API app and its dependencies using TurboRepo -# This ensures @mosaic/shared is built first, then prisma:generate, then the API -# Disable turbo cache temporarily to ensure fresh build and see full output -RUN pnpm turbo build --filter=@mosaic/api --force --verbosity=2 - -# Debug: Show what was built -RUN echo "=== Post-build directory structure ===" && \ - echo "--- packages/shared/dist ---" && ls -la packages/shared/dist/ 2>/dev/null || echo "NO dist in shared" && \ - echo "--- apps/api/dist ---" && ls -la apps/api/dist/ 2>/dev/null || echo "NO dist in api" && \ - echo "--- apps/api/dist contents (if exists) ---" && find apps/api/dist -type f 2>/dev/null | head -10 || echo "Cannot find dist files" +# --force disables turbo cache to ensure fresh build from source +RUN pnpm turbo build --filter=@mosaic/api --force # ====================== # Production stage