Skip to content

Commit a4c62c4

Browse files
authored
Move Download step in front of dependency installation/update step
1 parent b67a95e commit a4c62c4

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Dockerfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ ENV LANG=C.UTF-8
3131
ENV LC_ALL=C.UTF-8
3232

3333
RUN printf 'export LANG=C.UTF-8\nexport LC_ALL=C.UTF-8\n' > /etc/profile.d/locale.sh
34+
35+
# Download and unzip the latest Blueprint release
36+
RUN wget $(curl -s https://api.github.com/repos/BlueprintFramework/framework/releases/latest | grep 'browser_download_url' | cut -d '"' -f 4) -O blueprint.zip \
37+
&& unzip -o blueprint.zip -d /app \
38+
&& touch /.dockerenv \
39+
&& rm blueprint.zip
40+
3441
# Install yarn and Pterodactyl dependencies, as well as update browserlist
3542
RUN for i in {1..3}; do \
3643
npm install -g yarn && \
@@ -41,12 +48,6 @@ RUN for i in {1..3}; do \
4148
sleep 10; \
4249
done
4350

44-
# Download and unzip the latest Blueprint release
45-
RUN wget $(curl -s https://api.github.com/repos/BlueprintFramework/framework/releases/latest | grep 'browser_download_url' | cut -d '"' -f 4) -O blueprint.zip \
46-
&& unzip -o blueprint.zip -d /app \
47-
&& touch /.dockerenv \
48-
&& rm blueprint.zip
49-
5051
# Required for tput (used in blueprint.sh)
5152
ENV TERM=xterm
5253

0 commit comments

Comments
 (0)