forked from winor30/mcp-server-datadog
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (25 loc) · 924 Bytes
/
Dockerfile
File metadata and controls
39 lines (25 loc) · 924 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
36
37
38
39
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
FROM node:22.12-alpine AS builder
# Install pnpm globally
RUN npm install -g pnpm@10
WORKDIR /app
# Copy package files and install dependencies
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile --ignore-scripts
# Copy the rest of the files
COPY . .
# Build the project
RUN pnpm build
FROM node:22.12-alpine AS installer
# Install pnpm globally
RUN npm install -g pnpm@10
WORKDIR /app
# Copy package files and install only production dependencies
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile --ignore-scripts --prod
FROM node:22.12-alpine AS release
WORKDIR /app
COPY --from=builder /app/build /app/build
COPY --from=installer /app/node_modules /app/node_modules
# Expose port if needed (Not explicitly mentioned, MCP runs via stdio, so not needed)
CMD ["node", "build/index.js"]