File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11FROM ubuntu:22.04
22
33ARG DEBIAN_FRONTEND=noninteractive
4+ ARG TARGETPLATFORM
45
56RUN apt update -y -q && apt upgrade -y -q && apt update -y -q && \
67 apt install -y -q \
@@ -19,11 +20,11 @@ RUN apt update -y -q && apt upgrade -y -q && apt update -y -q && \
1920 gawk \
2021 unzip
2122
22- RUN if [ "$(uname -m) " = "arm64" ]; then \
23+ RUN if [ "$TARGETPLATFORM " = "linux/ arm64" ]; then \
2324 curl -L -o ninja-linux.zip https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-linux-aarch64.zip \
2425 ; fi
2526
26- RUN if [ "$(uname -m) " = "x86_64 " ]; then \
27+ RUN if [ "$TARGETPLATFORM " = "linux/amd64 " ]; then \
2728 curl -L -o ninja-linux.zip https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-linux.zip \
2829 ; fi
2930
You can’t perform that action at this time.
0 commit comments