-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (19 loc) · 768 Bytes
/
Copy pathDockerfile
File metadata and controls
21 lines (19 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM node:24-bookworm-slim AS build
WORKDIR /app
# tree-sitter-* deps compile native bindings via node-gyp at install time
RUN apt-get update && apt-get install -y --no-install-recommends python3 make g++ && rm -rf /var/lib/apt/lists/*
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM node:24-bookworm-slim
WORKDIR /app
ENV NODE_ENV=production
RUN apt-get update && apt-get install -y --no-install-recommends python3 make g++ && rm -rf /var/lib/apt/lists/*
COPY package.json package-lock.json ./
RUN npm ci --omit=dev && npm cache clean --force \
&& apt-get purge -y --auto-remove python3 make g++
COPY --from=build /app/dist ./dist
COPY --from=build /app/mock_project ./mock_project
ENTRYPOINT ["node", "dist/cli.js"]
CMD ["mcp"]