-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (25 loc) · 799 Bytes
/
Dockerfile
File metadata and controls
35 lines (25 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
FROM node:lts-alpine
# Stage 1: Build the project
FROM node:lts-alpine AS builder
WORKDIR /app
# Copy dependency definitions
COPY package.json package-lock.json ./
# Install dependencies without running scripts
RUN npm install --ignore-scripts
# Copy all project files
COPY . .
# Build the project
RUN npm run build
# Stage 2: Package the build
FROM node:lts-alpine
WORKDIR /app
# Copy only the production build and necessary files
COPY --from=builder /app/dist ./dist
COPY package.json ./
# Install only production dependencies
RUN npm install --production --ignore-scripts
# Expose port if needed (for example 8080) - adjust as necessary
# EXPOSE 8080
# Run the MCP server
CMD ["node", "dist/index.js"]