1
0
forked from maik/IPFS-portal
Files
IPFS-portal-deploy/Dockerfile
T
maikrolf 1ddc89479c feat: initial IPFS Portal — Next.js frontend for remote IPFS node management
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.
2026-06-25 19:47:57 +02:00

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"]