refactor: optimize npm installation step by removing cache mount

This commit is contained in:
Raj Nandan Sharma
2026-02-12 23:58:48 +05:30
parent 6ea045d152
commit 09afbbd17d
+1 -2
View File
@@ -53,8 +53,7 @@ WORKDIR /app
COPY package*.json ./
# 2. Install ALL dependencies (devDependencies needed for the build step)
RUN --mount=type=cache,target=/root/.npm \
npm ci --no-fund && \
RUN npm ci --no-fund && \
npm cache clean --force
# 3. Copy the rest of the source tree