Rebuild frontend with better alternatives rofl
This commit is contained in:
+4
-7
@@ -10,9 +10,10 @@ ENV PATH /usr/src/app/node_modules/.bin:$PATH
|
|||||||
COPY package.json /usr/src/app/package.json
|
COPY package.json /usr/src/app/package.json
|
||||||
|
|
||||||
# Nocache yarn install
|
# Nocache yarn install
|
||||||
#RUN yarn config set "strict-ssl" false -g
|
RUN npm config set fetch-retries 3 # Number of retry attempts (default is 2)
|
||||||
#RUN yarn install --network-timeout 1000000
|
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 install --timeout=60000 --legacy-peer-deps
|
RUN npm install --timeout=60000 --legacy-peer-deps
|
||||||
|
|
||||||
# copy only required files to not trigger rebuilding every time
|
# copy only required files to not trigger rebuilding every time
|
||||||
@@ -22,10 +23,6 @@ COPY ./src /usr/src/app/src/
|
|||||||
COPY ./*.sh /usr/src/app/
|
COPY ./*.sh /usr/src/app/
|
||||||
COPY ./*.json /usr/src/app/
|
COPY ./*.json /usr/src/app/
|
||||||
|
|
||||||
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
|
RUN npm run build --loglevel verbose 2>&1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user