Skip to content

Commit

Permalink
fix if
Browse files Browse the repository at this point in the history
  • Loading branch information
partouf committed Sep 27, 2024
1 parent a09b7b4 commit c035c6e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile.heaptrack
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ RUN apt update -y -q && apt upgrade -y -q && apt update -y -q && \
gawk \
unzip

RUN [ "$(uname -m)" = "arm64" ]; \
curl -L -o ninja-linux.zip https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-linux-aarch64.zip
RUN if [ "$(uname -m)" = "arm64" ]; then \
curl -L -o ninja-linux.zip https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-linux-aarch64.zip \
; fi

RUN [ "$(uname -m)" = "x86_64" ]; \
curl -L -o ninja-linux.zip https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-linux.zip
RUN if [ "$(uname -m)" = "x86_64" ]; then \
curl -L -o ninja-linux.zip https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-linux.zip \
; fi

RUN unzip ninja-linux.zip && \
mv ninja /usr/bin/ninja
Expand Down

0 comments on commit c035c6e

Please sign in to comment.