Skip to main content
Glama

Shadcn Registry manager

by reuvenaor
MIT License
9
1
Dockerfile1.24 kB
# Dockerfile for shadcn MCP server # 1. Builder stage FROM node:20-slim AS builder # Create a non-root user RUN useradd -m appuser WORKDIR /app # Install pnpm globally RUN npm install -g pnpm # Copy all package manifests for a full workspace install COPY tsconfig.json package.json pnpm-lock.yaml pnpm-workspace.yaml ./ COPY shadcn/package.json shadcn/tsconfig.json shadcn/tsup.config.ts ./shadcn/ # Install all dependencies for the shadcn workspace package RUN pnpm install --frozen-lockfile # Copy the rest of the source code COPY shadcn ./shadcn # Build the project WORKDIR /app/shadcn RUN pnpm run build # 2. Final image FROM node:20-slim # Create a non-root user RUN useradd -m appuser WORKDIR /app # Copy entrypoint script COPY entrypoint.sh ./entrypoint.sh RUN chmod +x ./entrypoint.sh # Copy over the package manifests and the entire built shadcn app COPY --from=builder /app/pnpm-lock.yaml . COPY --from=builder /app/pnpm-workspace.yaml . COPY --from=builder /app/package.json . COPY --from=builder /app/shadcn ./shadcn # Install pnpm globally RUN npm install -g pnpm # This allows pnpm to correctly link workspace packages. RUN pnpm install --prod # Switch to the non-root user USER appuser CMD ["/app/entrypoint.sh"]

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/shadcn-registry-manager'

If you have feedback or need assistance with the MCP directory API, please join our Discord server