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 # Declaring env
ENV NODE_ENV production ENV NODE_ENV production
# Install dependencies with the --legacy-peer-deps flag to bypass peer dependency conflicts # Bust cache and fully reinstall deps and lockfile each build
RUN npm install 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/ . COPY src/Managing.Web3Proxy/ .