From d811d71eecfd9cd21782281ec8e04d10d52e984c Mon Sep 17 00:00:00 2001 From: matatonic Date: Sun, 23 Jun 2024 13:04:08 -0400 Subject: [PATCH] typo --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3810ee8..5ffcd38 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ FROM python:3.11-slim -ARG TARGETPLATFORM TARGETARCH +ARG TARGETPLATFORM RUN apt-get update && apt-get install --no-install-recommends -y curl ffmpeg -RUN if [ $TARGEARCH = 'arm64' ]; then apt-get install --no-install-recommends -y build-essential ; fi -RUN if [ $TARGEARCH = 'arm64' ]; then curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y ; fi +RUN if [ "$TARGETPLATFORM" != "linux/amd64" ]; then apt-get install --no-install-recommends -y build-essential ; fi +RUN if [ "$TARGETPLATFORM" != "linux/amd64" ]; then curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y ; fi ENV PATH="/root/.cargo/bin:${PATH}" RUN apt-get clean && rm -rf /var/lib/apt/lists/*