Commit 979fd31
ci(docker): build server/ instead of api/ as the published image
The published ghcr.io/sentinel-bluebuilder/x402:latest image was being
built from api/ (the on-chain-event design), so anyone running the
docker-compose was actually getting the api/ implementation, not the
canonical EIP-3009 server/ described in the README.
- Add server/Dockerfile (multi-stage build, no DB volume, runs as
unprivileged user, exposes 4020; self-hosted facilitator binds
4021 internally inside the container)
- Add server/docker-compose.yml (matches the previous api/ compose
shape so existing deployments only need a port + env-var update)
- Update .github/workflows/build.yml to watch server/** and build
from ./server/Dockerfile
Operators upgrading from the api/ image will need to swap envs:
remove PAYMENT_CONTRACT_ADDRESS, OPERATOR_EVM_ADDRESS, HELIUS_*,
PRICE_PER_DAY_USDC, MIN_DAYS, MAX_DAYS, DATABASE_PATH; add
OPERATOR_ADDRESS, FACILITATOR_PRIVATE_KEY (or CDP_API_KEY_*); change
the published port from 3402 to 4020.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d38ba1b commit 979fd31
3 files changed
Lines changed: 48 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments