# Dockerfile.dev - Development version with hot reload
FROM node:20-alpine
# Install dumb-init
RUN apk add --no-cache dumb-init
# Set working directory
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install all dependencies (including dev dependencies)
RUN npm ci
# Copy source code
COPY . .
# Create non-root user
RUN addgroup -g 1001 -S nodejs
RUN adduser -S mcp -u 1001
RUN chown -R mcp:nodejs /app
USER mcp
# Expose port
EXPOSE 3000
# Use dumb-init for proper signal handling
ENTRYPOINT ["dumb-init", "--"]
# Development command with hot reload
CMD ["npm", "run", "dev"]
#