Files
apex-mcp-server/Dockerfile
david 8ff02f244e Fix BigInt crash in protocol parameter parsing, add docker-compose
Protocol parameter fields (minFeeA, minFeeB, maxTxSize, maxValSize)
lacked fallback defaults, causing "Cannot convert undefined to a BigInt"
when Lucid-Evolution processed them. Added safe defaults sourced from
Vector public testnet and updated deposit values to match. Made
lovelaceToAda() defensive against undefined/null. Added diagnostic
logging to getWalletInfo and getProtocolParameters error paths.

Converted Dockerfile to multi-stage build and added docker-compose.yml
with inline Vector testnet environment config.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-31 13:26:49 +02:00

16 lines
305 B
Docker

FROM node:22-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY tsup.config* tsconfig* ./
COPY src/ ./src/
RUN npm run build
FROM node:22-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev
COPY --from=builder /app/build/ ./build/
EXPOSE 3000
CMD ["node", "build/index.js"]