Commit
•
b95799c
1
Parent(s):
a11686a
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -7,9 +7,9 @@ RUN apt-get update && apt-get install -y curl
|
|
7 |
# Download the latest version of Ninja from GitHub
|
8 |
RUN version=$(basename $(curl -sL -o /dev/null -w %{url_effective} https://github.com/gngpp/ninja/releases/latest)) \
|
9 |
&& base_url="https://github.com/gngpp/ninja/releases/expanded_assets/$version" \
|
10 |
-
#
|
11 |
&& latest_url=https://github.com/$(curl -sL $base_url | grep -oP 'href=".*x86_64.*musl\.tar\.gz(?=")' | sed 's/href="//') \
|
12 |
-
#
|
13 |
&& curl -Lo ninja.tar.gz $latest_url \
|
14 |
&& tar -xzf ninja.tar.gz
|
15 |
|
|
|
7 |
# Download the latest version of Ninja from GitHub
|
8 |
RUN version=$(basename $(curl -sL -o /dev/null -w %{url_effective} https://github.com/gngpp/ninja/releases/latest)) \
|
9 |
&& base_url="https://github.com/gngpp/ninja/releases/expanded_assets/$version" \
|
10 |
+
# Get the URL of the distribution based on x86_64 CPU and musl libc
|
11 |
&& latest_url=https://github.com/$(curl -sL $base_url | grep -oP 'href=".*x86_64.*musl\.tar\.gz(?=")' | sed 's/href="//') \
|
12 |
+
# Download the tar.gz file and extract it
|
13 |
&& curl -Lo ninja.tar.gz $latest_url \
|
14 |
&& tar -xzf ninja.tar.gz
|
15 |
|