mirror of
https://github.com/luxfi/exchange-api.git
synced 2026-10-30 16:56:53 +00:00
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
18 lines
357 B
Docker
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"]
|