Bumped npm build config issues
This commit is contained in:
+6
-3
@@ -1,5 +1,5 @@
|
||||
# Build environment
|
||||
FROM node:21 as builder
|
||||
FROM node:23 as builder
|
||||
|
||||
ENV NODE_OPTIONS="--max-old-space-size=4096"
|
||||
|
||||
@@ -22,8 +22,11 @@ COPY ./src /usr/src/app/src/
|
||||
COPY ./*.sh /usr/src/app/
|
||||
COPY ./*.json /usr/src/app/
|
||||
|
||||
#RUN rm -rf /usr/src/app/node_modules/webpack
|
||||
#RUN yarn build --verbose
|
||||
RUN npm config set fetch-retries 3 # Number of retry attempts (default is 2)
|
||||
RUN npm config set fetch-retry-mintimeout 5000 # Minimum wait time before retrying (in ms, default is 10000)
|
||||
RUN npm config set fetch-retry-maxtimeout 60000 # Maximum wait time before retrying (in ms, default is 60000)
|
||||
RUN npm config set fetch-timeout 60000 # Overall fetch timeout (in ms, default is 300000)
|
||||
|
||||
RUN npm run build --loglevel verbose 2>&1
|
||||
|
||||
# Production environment
|
||||
|
||||
Reference in New Issue
Block a user