Skip to content

Commit 4e205f7

Browse files
committed
Add retry to docker file download
1 parent 4b15dd9 commit 4e205f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dockerfiles/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ WORKDIR /root/
3737
# Download and uncompress StarCraftII from https://github.com/Blizzard/s2client-proto#linux-packages and remove zip file
3838
# If file is locally available, use this instead:
3939
#COPY SC2.4.10.zip /root/
40-
RUN curl http://blzdistsc2-a.akamaihd.net/Linux/SC2.$SC2_VERSION.zip -o "SC2.$SC2_VERSION.zip" \
41-
&& unzip -q -P iagreetotheeula SC2.$SC2_VERSION.zip \
40+
RUN curl --retry 3 --retry-delay 5 -C - http://blzdistsc2-a.akamaihd.net/Linux/SC2.$SC2_VERSION.zip -o "SC2.$SC2_VERSION.zip" \
41+
&& unzip -q -P iagreetotheeula "SC2.$SC2_VERSION.zip" \
4242
&& rm SC2.$SC2_VERSION.zip
4343

4444
# Remove Battle.net folder
@@ -70,7 +70,7 @@ RUN curl -L https://sc2ai.net/wiki/184/plugin/attachments/download/9/ -o 1.zip \
7070
&& rm *.zip
7171

7272
# Get official blizzard maps
73-
RUN curl --retry 3 --retry-delay 5 -C - http://blzdistsc2-a.akamaihd.net/MapPacks/Ladder2019Season3.zip -o Ladder2019Season3.zip \
73+
RUN curl --retry 3 --retry-delay 5 -C - http://blzdistsc2-a.akamaihd.net/MapPacks/Ladder2019Season3.zip -o 'Ladder2019Season3.zip' \
7474
&& unzip -q -P iagreetotheeula -o 'Ladder2019Season3.zip' \
7575
&& mv Ladder2019Season3/* . \
7676
&& rm Ladder2019Season3.zip \

0 commit comments

Comments
 (0)