# Dockerfile for israel-statistics-mcp MCP server
# 1. Builder stage - Use the latest Node.js 20 image with specific version
FROM node:22.2.0-bookworm-slim AS builder
# Update packages first to get security patches
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
ca-certificates && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Create a non-root user
RUN useradd -m -u 1001 appuser
WORKDIR /app
# Install pnpm globally with latest version
RUN npm install -g pnpm@latest
# Copy all package manifests for a full workspace install
COPY package.json pnpm-lock.yaml ./
COPY tsconfig.json tsconfig.base.json ./
# Install all dependencies for the israel-statistics-mcp workspace package
RUN pnpm install --frozen-lockfile
# Copy the rest of the source code
COPY src/ ./src/
COPY tsup.config.ts ./
# Build the project
RUN pnpm run build
# Remove dev dependencies and keep only production deps
RUN pnpm prune --prod
# 2. Final stage - Use official Node.js slim (approved by Docker Hub)
FROM node:22.2.0-bookworm-slim
# Update packages for security
RUN apt-get update && \
apt-get upgrade -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Create a non-root user
RUN useradd -m -u 1001 appuser
WORKDIR /app
# Copy the built application from builder
COPY --from=builder /app/package.json ./
COPY --from=builder /app/dist ./dist/
COPY --from=builder /app/node_modules ./node_modules/
# Switch to non-root user
USER appuser
# Run the application
CMD ["node", "dist/index.js"]
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/reuvenaor/israel-statistics-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server