Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions devops/Dockerfile.backend
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# ── Build stage ──────────────────────────────────────────────
FROM node:20-alpine AS builder
# Use full Debian-based image in builder so native modules (e.g. from
# @solana packages) can compile without extra toolchain installs.
FROM node:20 AS builder
WORKDIR /app

# Copy workspace manifests first for layer caching
COPY package.json ./
COPY package.json package-lock.json ./
COPY backend/package.json ./backend/
RUN npm install --workspace=backend
RUN npm ci --workspace=backend

COPY backend ./backend
RUN npm -w backend run build
Expand Down
8 changes: 5 additions & 3 deletions devops/Dockerfile.frontend
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# ── Build stage ──────────────────────────────────────────────
FROM node:20-alpine AS builder
# Use full Debian-based image in builder so native modules (e.g. usb via
# @solana/wallet-adapter-wallets) can compile without extra toolchain installs.
FROM node:20 AS builder
WORKDIR /app

COPY package.json ./
COPY package.json package-lock.json ./
COPY frontend/package.json ./frontend/
RUN npm install --workspace=frontend
RUN npm ci --workspace=frontend

COPY frontend ./frontend
RUN npm -w frontend run build
Expand Down