From 98b84a92e19e713aee436609f547c758d3ffa3ed Mon Sep 17 00:00:00 2001 From: cryptooda Date: Fri, 31 Oct 2025 13:41:12 +0700 Subject: [PATCH] For node module rebuild --- src/Managing.Web3Proxy/Dockerfile-web3proxy | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Managing.Web3Proxy/Dockerfile-web3proxy b/src/Managing.Web3Proxy/Dockerfile-web3proxy index 6aa51fa1..f045a93d 100644 --- a/src/Managing.Web3Proxy/Dockerfile-web3proxy +++ b/src/Managing.Web3Proxy/Dockerfile-web3proxy @@ -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/ .