-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
70 lines (50 loc) · 2.16 KB
/
Copy pathDockerfile
File metadata and controls
70 lines (50 loc) · 2.16 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Multi-stage build for efficient container size
FROM node:26-alpine AS builder
ARG VERSION="unknown"
ARG COMMIT_SHA="unknown"
ARG BUILD_DATE="unknown"
WORKDIR /app
COPY package*.json ./
RUN npm ci --ignore-scripts
COPY . .
RUN npm run build
# Production stage
FROM node:26-alpine AS production
RUN addgroup -g 1001 -S avanan && \
adduser -S avanan -u 1001 -G avanan
WORKDIR /app
COPY package*.json ./
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
RUN npm prune --omit=dev && npm cache clean --force
RUN mkdir -p /app/logs && chown -R avanan:avanan /app
USER avanan
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:8080/health || exit 1
ENV NODE_ENV=production
ENV LOG_LEVEL=info
ENV MCP_TRANSPORT=http
ENV MCP_HTTP_PORT=8080
ENV MCP_HTTP_HOST=0.0.0.0
# Set to 'gateway' for hosted deployment where the MCP gateway injects credentials
ENV AUTH_MODE=gateway
VOLUME ["/app/logs"]
CMD ["node", "dist/index.js"]
ARG VERSION="unknown"
ARG COMMIT_SHA="unknown"
ARG BUILD_DATE="unknown"
LABEL maintainer="engineering@wyre.ai"
LABEL version="${VERSION}"
LABEL description="Checkpoint Harmony Email & Collaboration (Avanan) MCP Server"
LABEL org.opencontainers.image.title="mcp-server-checkpoint-avanan"
LABEL org.opencontainers.image.description="Model Context Protocol server for Checkpoint Harmony Email & Collaboration (Avanan) email security integration"
LABEL org.opencontainers.image.version="${VERSION}"
LABEL org.opencontainers.image.created="${BUILD_DATE}"
LABEL org.opencontainers.image.revision="${COMMIT_SHA}"
LABEL org.opencontainers.image.source="https://github.com/WYRE-AI/mcp-server-checkpoint-avanan"
LABEL org.opencontainers.image.documentation="https://github.com/WYRE-AI/mcp-server-checkpoint-avanan/blob/main/README.md"
LABEL org.opencontainers.image.url="https://github.com/WYRE-AI/mcp-server-checkpoint-avanan/pkgs/container/mcp-server-checkpoint-avanan"
LABEL org.opencontainers.image.vendor="Wyre Technology"
LABEL org.opencontainers.image.licenses="Apache-2.0"
LABEL io.modelcontextprotocol.server.name="io.github.WYRE-AI/avanan-mcp"