From 5a6356d27141c13bfe8f6f7e73913b8ce867532d Mon Sep 17 00:00:00 2001 From: syntaxbullet Date: Fri, 30 Jan 2026 14:15:30 +0100 Subject: [PATCH] fix: include web/src in production Dockerfile for direct TS imports --- Dockerfile.prod | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile.prod b/Dockerfile.prod index 9ec6d43..a666569 100644 --- a/Dockerfile.prod +++ b/Dockerfile.prod @@ -34,6 +34,7 @@ RUN groupadd --system appgroup && useradd --system --gid appgroup appuser COPY --from=builder --chown=appuser:appgroup /app/node_modules ./node_modules COPY --from=builder --chown=appuser:appgroup /app/web/node_modules ./web/node_modules COPY --from=builder --chown=appuser:appgroup /app/web/dist ./web/dist +COPY --from=builder --chown=appuser:appgroup /app/web/src ./web/src COPY --from=builder --chown=appuser:appgroup /app/bot ./bot COPY --from=builder --chown=appuser:appgroup /app/shared ./shared COPY --from=builder --chown=appuser:appgroup /app/package.json . @@ -48,7 +49,7 @@ EXPOSE 3000 # Health check HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \ - CMD bun -e "fetch('http://localhost:3000/api/health').then(r => r.ok ? process.exit(0) : process.exit(1)).catch(() => process.exit(1))" + CMD bun -e "fetch('http://localhost:3000/api/health').then(r => r.ok ? process.exit(0) : process.exit(1)).catch(() => process.exit(1))" # Run in production mode CMD ["bun", "run", "bot/index.ts"]