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
19 changes: 8 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
FROM node:20-alpine AS builder
FROM node:20-alpine

WORKDIR /app

COPY package*.json tsconfig.json ./
COPY src ./src
COPY . .

RUN npm ci
RUN npm install

RUN npm run build

FROM node:20-alpine

WORKDIR /app
# Expose the port (only useful for remote mode)
EXPOSE 3001

COPY --from=builder /app/package*.json ./
COPY --from=builder /app/build ./build
COPY --from=builder /app/node_modules ./node_modules
ENV NODE_ENV=production

ENTRYPOINT ["node", "build/index.js"]
# Start the MCP server (by default using stdio)
CMD ["node", "build/index.js"]
Loading