diff --git a/Dockerfile.fast b/Dockerfile.fast index 7fde8a0..3fb86f1 100644 --- a/Dockerfile.fast +++ b/Dockerfile.fast @@ -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/ diff --git a/frontend/package.json b/frontend/package.json index df5e35a..ac641ad 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -5,7 +5,8 @@ "type": "module", "scripts": { "dev": "vite", - "build": "tsc -b && vite build", + "build": "vite build", + "build:check": "tsc -b && vite build", "lint": "eslint .", "preview": "vite preview", "typecheck": "tsc --noEmit", @@ -26,8 +27,6 @@ }, "devDependencies": { "@eslint/js": "^9.29.0", - "@testing-library/jest-dom": "^6.6.3", - "@testing-library/react": "^16.2.0", "@types/react": "^19.1.8", "@types/react-dom": "^19.1.6", "@vitejs/plugin-react": "^4.5.2", @@ -35,13 +34,15 @@ "eslint-plugin-react-hooks": "^5.2.0", "eslint-plugin-react-refresh": "^0.4.20", "globals": "^16.2.0", - "jsdom": "^26.0.0", "typescript": "^5.7.2", - "vite": "^7.0.0", - "vitest": "^2.1.8" + "vite": "^7.0.0" }, "optionalDependencies": { - "@rollup/rollup-linux-x64-musl": "4.40.0" + "@rollup/rollup-linux-x64-musl": "4.40.0", + "@testing-library/jest-dom": "^6.6.3", + "@testing-library/react": "^16.2.0", + "jsdom": "^26.0.0", + "vitest": "^2.1.8" }, "overrides": { "rollup": "4.40.0"