arm-optimized base images

This commit is contained in:
2025-08-01 00:16:24 -04:00
parent 5480e2921b
commit cac5ebff3a
2 changed files with 9 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
# === STAGE 1: Build & Dependencies ===
FROM node:22 AS builder
FROM arm64v8/node:22 AS builder
WORKDIR /app
@@ -22,7 +22,7 @@ RUN --mount=type=cache,target=/app/.vinxi \
pnpm run build
# === STAGE 2: Generate Production-only Files ===
FROM node:22 AS production_builder
FROM arm64v8/node:22 AS production_builder
RUN corepack enable && corepack prepare pnpm@latest --activate
# Install jq to process the package.json file.
@@ -46,7 +46,7 @@ RUN --mount=type=cache,target=/root/.local/share/pnpm/store/v3 pnpm install --pr
RUN --mount=type=cache,target=/root/.local/share/pnpm/store/v3 pnpm prune --prod
# === STAGE 3: Final Production Image ===
FROM node:22-alpine
FROM arm64v8/node:22-alpine
WORKDIR /app