File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ # Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
2+ # Start with a Node.js base image
3+ FROM node:18-alpine AS builder
4+
5+ # Create a directory for the app
6+ WORKDIR /app
7+
8+ # Copy package.json and package-lock.json for installing dependencies
9+ COPY package.json package-lock.json ./
10+
11+ # Install dependencies
12+ RUN npm install --ignore-scripts
13+
14+ # Copy the rest of the application source code
15+ COPY . .
16+
17+ # Build the project
18+ RUN npm run build
19+
20+ # Use the same Node.js base image for the final container
21+ FROM node:18-alpine
22+
23+ # Set the working directory
24+ WORKDIR /app
25+
26+ # Copy the build output and necessary files from the builder stage
27+ COPY --from=builder /app/build /app/build
28+ COPY --from=builder /app/package.json /app/package.json
29+ COPY --from=builder /app/package-lock.json /app/package-lock.json
30+
31+ # Install only production dependencies
32+ RUN npm ci --omit=dev
33+
34+ # Set the environment variables for the Conda environment
35+ ENV CODE_STORAGE_DIR=/path/to/code/storage
36+ ENV CONDA_ENV_NAME=your-conda-env
37+
38+ # Specify the command to run the MCP Code Executor server
39+ ENTRYPOINT ["node" , "build/index.js" ]
You can’t perform that action at this time.
0 commit comments