Skip to content

Commit 557a3d4

Browse files
author
Deployment Bot
committed
fix: revert to npm run dev with full dependencies
- Install all dependencies including dev packages in production image - Use npm run dev which properly resolves path aliases - Avoids tsc-alias path resolution issues
1 parent 383759b commit 557a3d4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎backend/Dockerfile‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ RUN apk add --no-cache dumb-init curl
3030
# Copy package files
3131
COPY package*.json ./
3232

33-
# Install production dependencies only
34-
RUN npm install --only=production
33+
# Install ALL dependencies (including dev for tsc-alias, nodemon, etc)
34+
RUN npm install
3535

3636
# Copy built application from builder
3737
COPY --from=builder /app/dist ./dist
@@ -50,5 +50,5 @@ HEALTHCHECK --interval=30s --timeout=3s --start-period=60s --retries=3 \
5050
# Expose port
5151
EXPOSE 3000
5252

53-
# Start application - NODE_ENV already set above
54-
CMD ["node", "dist/server.js"]
53+
# Start application
54+
CMD ["npm", "run", "dev"]

0 commit comments

Comments
 (0)