-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (24 loc) · 916 Bytes
/
Copy pathDockerfile
File metadata and controls
32 lines (24 loc) · 916 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
FROM debian:bookworm-slim
ENV DEBIAN_FRONTEND=noninteractive \
NODE_NO_WARNINGS=1
# Install Node 22 + pnpm
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates curl git && \
curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
apt-get install -y --no-install-recommends nodejs && \
npm install -g pnpm@10.14.0 && \
node --version && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /app
# Clone the repo
RUN git clone https://github.com/VrtxOmega/sswp-mcp.git . && \
git checkout master
# Install deps (better-sqlite3 compiles native addon)
RUN pnpm config set store-dir /tmp/pnpm-store && \
pnpm approve-builds --global better-sqlite3 && \
pnpm install && \
pnpm run build
# Verify the MCP server loads
RUN node -e "require('./dist/sswp.cjs')" 2>&1 || true
EXPOSE 3000
CMD ["node", "dist/sswp.cjs"]