# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# Use a Node.js image
FROM node:20-alpine AS builder
# Set working directory
WORKDIR /app
# Copy package files
COPY package.json package-lock.json* ./
# Install dependencies and build the project
RUN npm install --ignore-scripts && \
npm run build
# Copy the source code and tsconfig
COPY tsconfig.json tsconfig.json
COPY src/ src/
# Build the project
RUN npm run build
# Use a minimal image to run the app
FROM node:20-alpine
# Set working directory
WORKDIR /app
# Copy only the necessary files from the builder
COPY --from=builder /app/dist /app/dist
COPY --from=builder /app/package.json /app/package.json
COPY --from=builder /app/package-lock.json /app/package-lock.json
# Install only production dependencies
RUN npm install --omit=dev --ignore-scripts
# Define environment variables
ENV NODE_ENV=production
# Entry point for the container
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/hichana/goalstory-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server