-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 896 Bytes
/
Dockerfile
File metadata and controls
28 lines (21 loc) · 896 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
FROM node:20-slim
RUN corepack enable
WORKDIR /app
# Copy workspace config and all package.jsons for dependency install
COPY pnpm-workspace.yaml pnpm-lock.yaml package.json ./
COPY packages/core/package.json packages/core/
COPY packages/server/package.json packages/server/
RUN pnpm install --frozen-lockfile
# Copy source for core and server (only packages needed at runtime)
COPY packages/core/ packages/core/
COPY packages/server/ packages/server/
COPY registry/ registry/
COPY docs/ docs/
RUN pnpm --filter x402charity build && pnpm --filter @x402charity/server build
EXPOSE 3402
# Required: DONATION_PRIVATE_KEY
# Required: CHARITY_WALLET (or use registry/charities.json)
# Optional: CHARITY_NAME, CHARITY_ID, CHARITY_DESCRIPTION
# Optional: DONATION_NETWORK (base or base-sepolia, default: base-sepolia)
# Optional: PORT (default: 3402)
CMD ["node", "packages/server/bin/server.js"]