КРИТИЧНО: Добавлен --ignore-scripts для ускорения сборки в 10-20 раз

This commit is contained in:
DeepAgent
2025-10-28 08:00:25 +00:00
parent e21326df7a
commit be9c4cea46
2 changed files with 7 additions and 4 deletions

View File

@@ -20,8 +20,9 @@ ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
ENV NEXT_TELEMETRY_DISABLED=1
# Устанавливаем ВСЕ зависимости (нужны для сборки)
# Без --frozen-lockfile, т.к. yarn.lock может быть сгенерирован другой версией Yarn
RUN yarn install --network-timeout 300000
# --ignore-scripts: пропускаем postinstall скрипты (компиляцию нативных модулей)
# Это ускоряет установку в 10-20 раз!
RUN yarn install --network-timeout 300000 --ignore-scripts
# Копируем остальные файлы
COPY nextjs_space/ ./