chore: Optimize Dockerfile for faster npm installation and update package.json to include additional build checks and dependencies for improved development workflow.
Publish Fast Tabler Docker image / build-and-push-fast (push) Failing after 1m15s

This commit is contained in:
2025-12-24 16:17:00 +07:00
parent b46471c4b4
commit 248b78ce96
2 changed files with 13 additions and 8 deletions
+5 -1
View File
@@ -11,7 +11,11 @@ RUN npm config set registry https://registry.npmjs.org/ \
&& npm config set fetch-retry-maxtimeout 120000
COPY frontend/package*.json ./
RUN --mount=type=cache,target=/root/.npm npm install --no-audit --no-fund
# Ускоряем установку: --ignore-scripts пропускает postinstall скрипты
RUN --mount=type=cache,target=/root/.npm \
npm ci --no-audit --no-fund --ignore-scripts --no-optional || \
npm install --no-audit --no-fund --ignore-scripts --no-optional
COPY frontend/src/ ./src/
COPY frontend/public/ ./public/