Add mcp-gateway/erpnext-mcp/Dockerfile

This commit is contained in:
Zac Gaetano 2026-03-31 15:29:30 -04:00
parent 2dcf701fc0
commit 8e7b300748

View file

@ -0,0 +1,25 @@
FROM node:22-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY tsconfig.json ./
COPY src/ ./src/
RUN npm run build
FROM node:22-alpine
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci --omit=dev
COPY --from=builder /app/dist ./dist
ENV TRANSPORT=http
ENV PORT=32802
EXPOSE 32802
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s \
CMD wget -qO- http://localhost:32802/health || exit 1
CMD ["node", "dist/index.js"]