need to first npm install, before we can run grunt

This commit is contained in:
ralf 2024-04-30 13:42:31 +02:00
parent 191bdc39e6
commit d23b80d75a

View File

@ -96,13 +96,13 @@ RUN set -e \
&& apt-get install -y nodejs libatomic1 ; \ && apt-get install -y nodejs libatomic1 ; \
fi \ fi \
&& npm config set fetch-retries 5 \ && npm config set fetch-retries 5 \
&& npm install -g grunt-cli \
# npm install fails "silent" on network timeouts, retry until it works
&& until grunt; do sleep 5; npm install -g grunt-cli; done \
&& mkdir chunks \ && mkdir chunks \
&& npm install \ && npm install \
# npm install fails "silent" on network timeouts, retry until it works # npm install fails "silent" on network timeouts, retry until it works
&& until npm run build; do sleep 5; npm install; done \ && until npm run build; do sleep 5; npm install; done \
&& npm install -g grunt-cli \
# npm install fails "silent" on network timeouts, retry until it works
&& until grunt; do sleep 5; npm install -g grunt-cli; done \
# clean up and remove caches # clean up and remove caches
&& npm uninstall -g grunt-cli \ && npm uninstall -g grunt-cli \
&& npm cache clear --force \ && npm cache clear --force \