Dockerfile.runtimeā¢692 B
# Runtime-only Dockerfile for MCP Tailwind Gemini
FROM node:18-alpine
# Set working directory
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install only production dependencies
RUN npm ci --only=production --silent
# Copy built dist and necessary files
COPY dist/ ./dist/
COPY mcp.json ./
COPY README.md ./
# Create non-root user
RUN addgroup -g 1001 -S nodejs && \
adduser -S mcp -u 1001 -G nodejs
# Change ownership
RUN chown -R mcp:nodejs /app
USER mcp
# Expose port
EXPOSE 3000
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD node -e "console.log('Health Check: OK')" || exit 1
# Start command
CMD ["npm", "start"]