chore: Update Dockerfile to switch from npm ci to npm install for improved dependency management with caching
Publish Fast Tabler Docker image / build-and-push-fast (push) Failing after 2m36s
Publish Fast Tabler Docker image / build-and-push-fast (push) Failing after 2m36s
This commit is contained in:
+2
-2
@@ -15,8 +15,8 @@ RUN npm config set registry https://registry.npmjs.org/ \
|
||||
# Copy package files first for better caching
|
||||
COPY frontend/package*.json ./
|
||||
|
||||
# Clean install dependencies with lockfile for reproducible and cached builds
|
||||
RUN --mount=type=cache,target=/root/.npm npm ci --no-audit --no-fund
|
||||
# Install dependencies with cache (lockfile может отличаться после overrides/optional deps)
|
||||
RUN --mount=type=cache,target=/root/.npm npm install --no-audit --no-fund
|
||||
|
||||
# Copy source code (only what's needed for build)
|
||||
COPY frontend/src/ ./src/
|
||||
|
||||
Reference in New Issue
Block a user