-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
38 lines (27 loc) · 1.09 KB
/
Dockerfile
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
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# Use a Node.js image for building the project
FROM node:18-alpine AS builder
# Set the working directory in the container
WORKDIR /app
# Copy the package.json and package-lock.json to the working directory
COPY package.json package-lock.json ./
# Install the dependencies
RUN npm install
# Copy the rest of the source files to the container
COPY . .
# Build the TypeScript project
RUN npm run build
# Use a minimal Node.js runtime image for running the application
FROM node:18-alpine
# Set the working directory in the container
WORKDIR /app
# Copy only the build output and node_modules from the builder stage
COPY --from=builder /app/build ./build
COPY --from=builder /app/node_modules ./node_modules
COPY package.json ./
# Set environment variables
ENV VERODAT_AI_API_KEY=your-verodat-ai-api-key
# Expose any ports if necessary (this depends on how the MCP server operates, e.g., if it needs to listen on a network port)
# EXPOSE 3000
# Define the command to run the application
CMD ["node", "build/src/index.js"]