# Build stage
FROM node:20-alpine AS builder
WORKDIR /app
# Copy package files
COPY package*.json ./
COPY tsconfig.json ./
# Copy source code first (needed for prepare script)
COPY src ./src
# Install all dependencies (including dev dependencies needed for build)
# Note: strict-ssl is disabled for build environments with self-signed certificates
RUN npm config set strict-ssl false && npm install
# Production stage
FROM node:20-alpine
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install production dependencies only (skip scripts to avoid running prepare/build)
# Note: strict-ssl is disabled for build environments with self-signed certificates
RUN npm config set strict-ssl false && npm install --omit=dev --ignore-scripts
# Copy built files from builder
COPY --from=builder /app/dist ./dist
# Set environment variables (can be overridden at runtime)
ENV VAULT_ADDR=http://vault:8200
ENV NODE_ENV=production
# Run as non-root user
USER node
# Start the MCP server
ENTRYPOINT ["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/kelleyblackmore/vault-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server