-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (23 loc) · 774 Bytes
/
Copy pathDockerfile
File metadata and controls
32 lines (23 loc) · 774 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
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# Use a Node.js base image
FROM node:20-alpine as build
# Set the working directory
WORKDIR /app
# Copy package files and install dependencies
COPY package*.json ./
RUN npm install --ignore-scripts
# Copy the rest of the application files
COPY . .
# Build the application
RUN npm run build
# Use a smaller Node.js base image for the final image
FROM node:20-alpine
# Set the working directory
WORKDIR /app
# Copy the build artifacts from the previous stage
COPY --from=build /app/build ./build
COPY --from=build /app/package*.json ./
# Install only production dependencies
RUN npm install --omit=dev
# Define the command to run the MCP server
ENTRYPOINT ["node", "build/index.js"]