chore: speed up Docker builds

- drop arm64/QEMU — build amd64 only
- add pnpm store cache mounts to client and server install steps
This commit is contained in:
neon
2026-03-11 14:07:42 -06:00
parent 4c4a5cbf25
commit 8abfb82214
2 changed files with 5 additions and 6 deletions
+4 -2
View File
@@ -8,7 +8,8 @@ WORKDIR /app
COPY package.json pnpm-workspace.yaml pnpm-lock.yaml ./
COPY packages/ packages/
COPY client/package.json ./client/
RUN pnpm install --filter client... --frozen-lockfile
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store \
pnpm install --filter client... --frozen-lockfile
COPY client/ ./client/
RUN pnpm --filter client run build-only
@@ -21,7 +22,8 @@ WORKDIR /app
COPY package.json pnpm-workspace.yaml pnpm-lock.yaml ./
COPY packages/ packages/
COPY server/package.json ./server/
RUN pnpm install --filter server... --frozen-lockfile
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store \
pnpm install --filter server... --frozen-lockfile
COPY server/ ./server/
RUN pnpm --filter server run build