fix: add missing TARGETARCH definition

This commit is contained in:
Laurent Sorber
2023-09-12 09:58:27 +02:00
committed by GitHub
parent 47c0ff8d1e
commit b2162213d8

View File

@@ -9,6 +9,7 @@ RUN apt-get update && \
rm -rf /var/lib/apt/lists/*
# Install Miniconda.
ARG TARGETARCH
RUN CONDA_ARCH=$([ "$TARGETARCH" = "arm64" ] && echo "aarch64" || echo "x86_64") && \
wget --quiet "https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-$CONDA_ARCH.sh" --output-document ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /opt/conda && \