chore: Update Dockerfile for faster npm installation and enhance package.json with additional testing dependencies to improve development and testing capabilities.
Publish Fast Tabler Docker image / build-and-push-fast (push) Has been cancelled
Publish Fast Tabler Docker image / build-and-push-fast (push) Has been cancelled
This commit is contained in:
+2
-3
@@ -12,10 +12,9 @@ RUN npm config set registry https://registry.npmjs.org/ \
|
|||||||
|
|
||||||
COPY frontend/package*.json ./
|
COPY frontend/package*.json ./
|
||||||
|
|
||||||
# Ускоряем установку: --ignore-scripts пропускает postinstall скрипты
|
# npm install с кэшем для ускорения
|
||||||
RUN --mount=type=cache,target=/root/.npm \
|
RUN --mount=type=cache,target=/root/.npm \
|
||||||
npm ci --no-audit --no-fund --ignore-scripts --no-optional || \
|
npm install --no-audit --no-fund
|
||||||
npm install --no-audit --no-fund --ignore-scripts --no-optional
|
|
||||||
|
|
||||||
COPY frontend/src/ ./src/
|
COPY frontend/src/ ./src/
|
||||||
COPY frontend/public/ ./public/
|
COPY frontend/public/ ./public/
|
||||||
|
|||||||
@@ -27,6 +27,8 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/js": "^9.29.0",
|
"@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": "^19.1.8",
|
||||||
"@types/react-dom": "^19.1.6",
|
"@types/react-dom": "^19.1.6",
|
||||||
"@vitejs/plugin-react": "^4.5.2",
|
"@vitejs/plugin-react": "^4.5.2",
|
||||||
@@ -34,15 +36,13 @@
|
|||||||
"eslint-plugin-react-hooks": "^5.2.0",
|
"eslint-plugin-react-hooks": "^5.2.0",
|
||||||
"eslint-plugin-react-refresh": "^0.4.20",
|
"eslint-plugin-react-refresh": "^0.4.20",
|
||||||
"globals": "^16.2.0",
|
"globals": "^16.2.0",
|
||||||
|
"jsdom": "^26.0.0",
|
||||||
"typescript": "^5.7.2",
|
"typescript": "^5.7.2",
|
||||||
"vite": "^7.0.0"
|
"vite": "^7.0.0",
|
||||||
|
"vitest": "^2.1.8"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"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": {
|
"overrides": {
|
||||||
"rollup": "4.40.0"
|
"rollup": "4.40.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user