Skip to content

Commit 7d218da

Browse files
pktikkaniclaude
andcommitted
Add tsc-alias to resolve path aliases at runtime
Node.js doesn't understand @/* path aliases at runtime. Added tsc-alias to replace them with relative paths after compilation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5ee6513 commit 7d218da

3 files changed

Lines changed: 507 additions & 5 deletions

File tree

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,20 @@ WORKDIR /app
66
COPY package*.json ./
77
COPY prisma ./prisma/
88

9-
# Install dependencies
9+
# Install all dependencies (including dev for build)
1010
RUN npm ci
1111

1212
# Copy source code
1313
COPY . .
1414

15-
# Build
15+
# Build (includes tsc-alias to resolve path aliases)
1616
RUN npm run build
1717

18+
# Remove dev dependencies
19+
RUN npm prune --production
20+
1821
# Expose port
1922
EXPOSE 3000
2023

2124
# Start
22-
CMD ["npm", "run", "start"]
25+
CMD ["node", "dist/src/server.js"]

0 commit comments

Comments
 (0)