build(docker): add git dependency and increase Node.js memory allocation
Some checks failed
Frontend CI / ota (android) (push) Has been cancelled
Frontend CI / ota (ios) (push) Has been cancelled
Frontend CI / build-android-apk (push) Has been cancelled
Frontend CI / build-and-push-web (push) Successful in 2m44s

This commit is contained in:
lafay
2026-06-16 18:31:58 +08:00
parent b05da4e4a6
commit 9b5e76b310

View File

@@ -2,11 +2,14 @@ FROM node:25-alpine AS builder
WORKDIR /app
# git required by app.config.js for version derivation (has try-catch fallback)
RUN apk add --no-cache git
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN NODE_OPTIONS="--max-old-space-size=2048" node /app/node_modules/.bin/expo export --platform web --output-dir dist-web
RUN NODE_OPTIONS="--max-old-space-size=4096" node /app/node_modules/.bin/expo export --platform web --output-dir dist-web
FROM nginx:1.27-alpine