# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# Use the official Node.js image.
FROM node:16-alpine AS builder
# Set the working directory in the container
WORKDIR /app
# Copy the package.json and package-lock.json files
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy the rest of the application source code
COPY . .
# Build the application
RUN npm run build
# Use a separate runtime image for the final build
FROM node:16-alpine AS runner
# Set the working directory in the container
WORKDIR /app
# Copy built files and node_modules from the builder stage
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/package.json ./
# Copy the .env file (if any) - ensure you have a .dockerignore to exclude any sensitive files
COPY .env ./
# Expose port (if the server listens on a specific port, specify it here)
# EXPOSE 3000
# Set environment variables if required
ENV NODE_ENV=production
# 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/apinetwork/piapi-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server