Skip to content

Commit aedfa80

Browse files
authored
Fix stuff
- Made retry logic per-line instead of for the block (should fix random build failures) - Added the `npm i baseline-browser-mapping` part, since the last build showed a warning that the data that's supposed to refresh was over 2 months old and suggested running this
1 parent 50c09f3 commit aedfa80

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

Dockerfile

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,12 @@ RUN wget "$(curl -s https://api.github.com/repos/BlueprintFramework/framework/re
4040
&& touch /.dockerenv \
4141
&& rm blueprint.zip
4242
43-
# Install yarn and Pterodactyl dependencies, as well as update browserlist
44-
RUN for i in {1..3}; do \
45-
npm install -g yarn && \
46-
yarn --network-timeout 120000 && \
47-
npx update-browserslist-db@latest && \
48-
break || \
49-
echo "Attempt $i failed! Retrying..." && \
50-
sleep 10; \
51-
done
43+
# Install dependencies and update browser compatibility data
44+
RUN retry() { for i in 1 2 3; do "$@" && return || sleep 10; done; exit 1; } && \
45+
retry npm install -g yarn && \
46+
retry yarn --network-timeout 120000 && \
47+
retry npx update-browserslist-db@latest && \
48+
retry npm i baseline-browser-mapping@latest -D --legacy-peer-deps
5249
5350
# Required for tput (used in blueprint.sh)
5451
ENV TERM=xterm

0 commit comments

Comments
 (0)