We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 349a40c commit 93869d3Copy full SHA for 93869d3
Dockerfile
@@ -1,17 +1,29 @@
1
-FROM node:20-alpine
+FROM node:20-alpine AS builder
2
3
WORKDIR /app
4
5
COPY . .
6
7
-RUN npm install
+RUN npm ci
8
9
RUN npm run build
10
11
-# Expose the port (only useful for remote mode)
12
-EXPOSE 3001
+FROM node:20-alpine AS server
+
13
+WORKDIR /app
14
15
+COPY --from=builder /app/package*.json .
16
17
+COPY --from=builder /app/build ./build
18
19
ENV NODE_ENV=production
20
21
+RUN npm ci --omit=dev
22
23
+RUN npm i --omit=dev -g .
24
25
+# Expose the port (only useful for remote mode)
26
+EXPOSE 3001
27
28
# Start the MCP server (by default using stdio)
-CMD ["node", "build/index.js"]
29
+CMD ["iexec-mcp"]
0 commit comments