Skip to content

Commit 8c2a8e4

Browse files
committed
Add Dockerfile
1 parent 29f06b2 commit 8c2a8e4

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Dockerfile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
2+
# syntax=docker/dockerfile:1.4
3+
4+
# Build stage
5+
FROM node:lts-alpine AS builder
6+
WORKDIR /app
7+
8+
# Install dependencies
9+
COPY package.json package-lock.json ./
10+
RUN npm ci --ignore-scripts
11+
12+
# Copy source and build
13+
COPY . .
14+
RUN npm run build
15+
16+
# Production stage
17+
FROM node:lts-alpine AS runtime
18+
WORKDIR /app
19+
20+
# Copy built artifacts and production dependencies
21+
COPY --from=builder /app/dist ./dist
22+
COPY package.json package-lock.json ./
23+
RUN npm ci --only=production --ignore-scripts
24+
25+
# Default command to start the MCP server
26+
ENTRYPOINT ["node", "dist/index.js"]

0 commit comments

Comments
 (0)