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
Publish Fast Tabler Docker image / build-and-push-fast (push) Failing after 1m15s
This commit is contained in:
+5
-1
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user