Skip to content

Commit eaa4ad2

Browse files
feat(production): enable Dockerized deployment
1 parent 36367c8 commit eaa4ad2

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Dockerfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
FROM node:lts-alpine
2+
3+
# Create app directory
4+
WORKDIR /app
5+
6+
# Install pnpm
7+
RUN npm install -g pnpm
8+
9+
# Copy package.json and lock files
10+
COPY package.json pnpm-lock.yaml* ./
11+
12+
# Install only production dependencies initially
13+
RUN pnpm install --prod --ignore-scripts
14+
15+
# Copy source code
16+
COPY . .
17+
18+
# Build the project
19+
RUN pnpm run build
20+
21+
# Expose no ports, use stdio
22+
23+
# Default command to run the MCP server
24+
CMD ["node", "build/index.js"]

0 commit comments

Comments
 (0)