For node module rebuild

This commit is contained in:
2025-10-31 13:41:12 +07:00
parent f6d9abbe0f
commit 98b84a92e1

View File

@@ -10,8 +10,12 @@ COPY /src/Managing.Web3Proxy/package.json ./
# Declaring env
ENV NODE_ENV production
# Install dependencies with the --legacy-peer-deps flag to bypass peer dependency conflicts
RUN npm install
# Bust cache and fully reinstall deps and lockfile each build
ARG BUILD_TIMESTAMP
RUN echo "CACHEBUST=$BUILD_TIMESTAMP" \
&& rm -rf node_modules package-lock.json \
&& npm install --package-lock-only \
&& npm ci --no-audit --fund=false
COPY src/Managing.Web3Proxy/ .