forked from windoze95/servicewow-mcp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (23 loc) · 748 Bytes
/
Dockerfile
File metadata and controls
35 lines (23 loc) · 748 Bytes
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
FROM node:22-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY tsconfig.json ./
COPY src/ ./src/
RUN npm run build
FROM node:22-alpine
LABEL org.opencontainers.image.source="https://github.com/windoze95/servicewow-mcp"
LABEL org.opencontainers.image.description="ServiceNow MCP Server"
LABEL org.opencontainers.image.version="1.0.0"
WORKDIR /app
COPY package*.json ./
RUN npm ci --production
COPY --from=builder /app/dist/ ./dist/
RUN addgroup -S mcp && adduser -S mcp -G mcp
USER mcp
ENV MCP_PORT=8080
ENV HEALTHCHECK_PROTOCOL=http
EXPOSE ${MCP_PORT}
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
CMD wget -qO- ${HEALTHCHECK_PROTOCOL}://localhost:${MCP_PORT}/health || exit 1
CMD ["node", "dist/index.js"]