Dockerfile.mcp-connector•782 B
# DENTEX MCP Server Container with Zod Support
FROM node:18-alpine
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apk add --no-cache \
python3 \
py3-pip \
docker-cli \
curl \
bash
# Copy package.json first (for better caching)
COPY package.json ./
# Install Node.js dependencies
RUN npm install --production
# Copy the source code
COPY src/ ./src/
# Create logs directory
RUN mkdir -p /app/logs
# Set environment variables
ENV NODE_ENV=production
ENV PORT=3000
# Expose MCP server port
EXPOSE 3000
# Add a simple health check script
RUN echo '#!/bin/bash\necho "DENTEX MCP Server is healthy"' > /app/health.sh && chmod +x /app/health.sh
# Default command - Start the MCP server
CMD ["npm", "start"]
CMD ["node", "src/server.js"]