# Generated by https://smithery.ai. See: https://smithery.ai/docs/build/project-config
# Builder stage
FROM node:lts-alpine AS builder
WORKDIR /app
# Install all dependencies including dev
COPY package.json package-lock.json tsconfig.json ./
COPY src ./src
RUN npm install
RUN npm run build
# Runtime stage
FROM node:lts-alpine
WORKDIR /app
# Install production dependencies
COPY package.json package-lock.json ./
RUN npm install --production
# Copy built files and assets
COPY --from=builder /app/dist ./dist
COPY assets ./assets
# Set environment
ENV NODE_ENV=production
# Start the server
CMD ["node", "dist/index.js"]