Files
zeekay d6bea0966f feat: exchange-api GraphQL proxy for lux.exchange
Node.js GraphQL proxy that handles LUX/ZOO chain queries locally
via subgraph + Blockscout + hardcoded token metadata, and proxies
all other chains to Uniswap upstream API.

- Hardcoded token metadata for 20+ Lux mainnet tokens
- Subgraph integration for V2/V3 pool data
- Blockscout fallback for on-chain token info
- Health endpoint at /health
- Docker image: ghcr.io/luxfi/exchange-api
2026-03-09 15:52:23 -07:00

18 lines
357 B
Docker

FROM node:22-alpine AS builder
WORKDIR /app
COPY package.json ./
RUN npm install
COPY tsconfig.json ./
COPY src/ ./src/
RUN npx tsc
FROM node:22-alpine
WORKDIR /app
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
COPY package.json ./
ENV NODE_ENV=production
ENV PORT=4000
EXPOSE 4000
CMD ["node", "dist/index.js"]