Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
**/node_modules
**/dist
.git
.env
.env.*
*.log
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- run: npm run typecheck
- run: npm run build
- run: npm pack --workspace mcp-server --dry-run
- run: docker build -t corpus-mcp .
- run: node scripts/check-plugin-package.mjs
- uses: actions/setup-python@v5
with:
Expand Down
26 changes: 26 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Corpus MCP server (stdio). A thin client of the hosted server at
# corpuslaw.us: every MCP request is forwarded there, so the container needs
# outbound HTTPS and nothing else. No API key is required to start it or to
# list tools; set CORPUS_API_KEY for higher search limits.
#
# docker build -t corpus-mcp .
# docker run -i --rm corpus-mcp
FROM node:22-alpine AS build
WORKDIR /app
COPY package.json package-lock.json ./
COPY mcp-server/package.json mcp-server/
RUN npm ci --workspace mcp-server --include-workspace-root=false
COPY tsconfig.base.json ./
COPY mcp-server/tsconfig.json mcp-server/
COPY mcp-server/src mcp-server/src
RUN npm run build --workspace mcp-server

# The server has no runtime dependencies, so the final image is just the
# compiled output on a clean Node.
FROM node:22-alpine
WORKDIR /app
ENV NODE_ENV=production
COPY --from=build /app/mcp-server/package.json ./
COPY --from=build /app/mcp-server/dist ./dist
USER node
ENTRYPOINT ["node", "dist/index.js"]
4 changes: 4 additions & 0 deletions glama.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://glama.ai/mcp/schemas/server.json",
"maintainers": ["teakesdev"]
}
Loading