Skip to main content
Glama
crawler.Dockerfile1.09 kB
# Build stage FROM node:20-alpine AS builder WORKDIR /app # Install pnpm RUN npm install -g pnpm # Copy workspace files COPY pnpm-workspace.yaml . COPY package.json . COPY pnpm-lock.yaml* . # Copy packages COPY packages/crawler-engine ./packages/crawler-engine COPY tsconfig.json . # Install dependencies RUN pnpm install # Build WORKDIR /app/packages/crawler-engine RUN pnpm build # Runtime stage FROM node:20-alpine WORKDIR /app # Install pnpm and other tools for web scraping RUN npm install -g pnpm && \ apk add --no-cache \ chromium \ nss \ freetype \ harfbuzz \ ca-certificates \ ttf-dejavu # Copy workspace files COPY pnpm-workspace.yaml . COPY package.json . COPY pnpm-lock.yaml* . # Copy packages COPY packages/crawler-engine ./packages/crawler-engine COPY tsconfig.json . # Install production dependencies only RUN pnpm install --prod # Copy built application COPY --from=builder /app/packages/crawler-engine/dist ./packages/crawler-engine/dist ENV NODE_ENV=production CMD ["node", "packages/crawler-engine/dist/index.js"]

Latest Blog Posts

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/aiatamai/atamai-mcp'

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