mirror of
https://github.com/mauricioabh/arbpulse.git
synced 2026-07-27 15:47:43 +00:00
Initial commit: Arb Pulse monolith with CI and optional Fly deploy.
Real-time BTC cross-exchange arbitrage detection (Kraken, Bybit, OKX, Binance) with React dashboard, GitHub Actions CI, and documented Fly.io deploy workflow. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
# Stage 1 — Vite frontend (web/dist)
|
||||
FROM node:20-alpine AS web-build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# web/package.json links "arb-pulse": "file:.." — root package.json required for npm ci
|
||||
COPY package.json package-lock.json ./
|
||||
COPY web/package.json web/package-lock.json ./web/
|
||||
|
||||
RUN npm ci --prefix web
|
||||
|
||||
COPY web/ ./web/
|
||||
|
||||
RUN npm run build --prefix web
|
||||
|
||||
# Stage 2 — production server (tsx, no tsc emit)
|
||||
FROM node:20-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV PORT=8080
|
||||
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci --omit=dev
|
||||
|
||||
COPY src/ ./src/
|
||||
COPY --from=web-build /app/web/dist ./web/dist
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["npm", "start"]
|
||||
Reference in New Issue
Block a user