From 9b5e76b3109d183ea930bc1f8951489b7727c105 Mon Sep 17 00:00:00 2001 From: lafay <2021211506@stu.hit.edu.cn> Date: Tue, 16 Jun 2026 18:31:58 +0800 Subject: [PATCH] build(docker): add git dependency and increase Node.js memory allocation --- Dockerfile.web | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile.web b/Dockerfile.web index ec371e2..4bc995f 100644 --- a/Dockerfile.web +++ b/Dockerfile.web @@ -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