fix(wallet,referral): correct build output path to dist/main.js

These services build to dist/main.js (no src subdirectory).
Added build verification steps.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Developer 2025-12-02 05:38:36 -08:00
parent efd1156739
commit 1150d7e514
2 changed files with 8 additions and 2 deletions

View File

@ -27,6 +27,9 @@ COPY src ./src
# Build TypeScript
RUN npm run build
# Verify build output exists
RUN ls -la dist/ && test -f dist/main.js
# Production stage - use Debian slim for OpenSSL compatibility
FROM node:20-slim
@ -64,4 +67,4 @@ HEALTHCHECK --interval=30s --timeout=3s --start-period=40s --retries=3 \
CMD wget -q --spider http://localhost:3004/health || exit 1
# Start service
CMD ["node", "dist/src/main.js"]
CMD ["node", "dist/main.js"]

View File

@ -27,6 +27,9 @@ COPY src ./src
# Build TypeScript
RUN npm run build
# Verify build output exists
RUN ls -la dist/ && test -f dist/main.js
# Production stage - use Debian slim for OpenSSL compatibility
FROM node:20-slim
@ -64,4 +67,4 @@ HEALTHCHECK --interval=30s --timeout=3s --start-period=40s --retries=3 \
CMD wget -q --spider http://localhost:3001/health || exit 1
# Start service
CMD ["node", "dist/src/main.js"]
CMD ["node", "dist/main.js"]