# Use official Bun image as builder
FROM oven/bun:1-alpine AS builder
LABEL org.opencontainers.image.source=https://github.com/delorenj/mcp-server-trello
# Set the working directory to /app
WORKDIR /app
# Install build dependencies
RUN apk add --no-cache python3 make g++
# Copy package files first to leverage Docker cache
COPY package.json bun.lock ./
# Install all dependencies (including dev dependencies)
RUN bun install --frozen
# Copy the rest of the code
COPY . .
# Build TypeScript
RUN bun run build
# Use official Bun image for runtime
FROM oven/bun:1-alpine AS release
# Set the working directory to /app
WORKDIR /app
# Copy only the necessary files from builder
COPY --from=builder /app/build ./build
COPY --from=builder /app/package.json ./
COPY --from=builder /app/bun.lock ./
# Install only production dependencies without running scripts
RUN bun install --production --frozen
# The environment variables should be passed at runtime, not baked into the image
# They can be provided via docker run -e or docker compose environment section
ENV NODE_ENV=production
# Run the MCP server using Bun
CMD ["bun", "build/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/delorenj/mcp-server-trello'
If you have feedback or need assistance with the MCP directory API, please join our Discord server