1ddc89479c
Multi-file upload with Quick Upload + Crypto Payment tabs. Dashboard with live IPFS metrics, Explorer, Peers, Pins, History, Settings pages. Docker deploy (standalone output), full test suite (16 Playwright tests). Payment integration via IPFSPortalPayment + MockUSDC contracts on zkSync.
31 lines
566 B
Docker
31 lines
566 B
Docker
# ── IPFS Portal — Multi-stage Docker Build ──
|
|
|
|
# ---- Build ----
|
|
FROM node:22-alpine AS builder
|
|
WORKDIR /app
|
|
|
|
ENV DOCKER_BUILD=true
|
|
|
|
COPY package.json package-lock.json ./
|
|
RUN npm ci
|
|
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
# ---- Production ----
|
|
FROM node:22-alpine
|
|
WORKDIR /app
|
|
|
|
ENV NODE_ENV=production
|
|
ENV NEXT_TELEMETRY_DISABLED=1
|
|
|
|
# Copy standalone output from builder
|
|
COPY --from=builder /app/.next/standalone ./
|
|
COPY --from=builder /app/.next/static ./.next/static
|
|
COPY --from=builder /app/public ./public
|
|
|
|
ENV PORT=3445
|
|
EXPOSE 3445
|
|
|
|
CMD ["node", "server.js"]
|