From 01ec0beb5d7c78eb4fae73aa168df9bf357e7bbf Mon Sep 17 00:00:00 2001 From: Manish Gupta Date: Thu, 23 May 2024 11:07:57 +0530 Subject: [PATCH] fix: dockerfile.base --- Dockerfile.base | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile.base b/Dockerfile.base index 6748fb9dd58..d11934db685 100644 --- a/Dockerfile.base +++ b/Dockerfile.base @@ -1,4 +1,6 @@ -FROM --platform=$BUILDPLATFORM ubuntu:22.04 +FROM --platform=$BUILDPLATFORM tonistiigi/binfmt as binfmt + +FROM ubuntu:22.04 # Set environment variables for non-interactive installation ENV DEBIAN_FRONTEND=noninteractive @@ -22,13 +24,13 @@ RUN apt-get update && apt-get install -y redis-server # Install MinIO -ARG TARGETPLATFORM -RUN if [ "$TARGETPLATFORM" = "amd64" ]; then \ +ARG TARGETARCH +RUN if [ "$TARGETARCH" = "amd64" ]; then \ wget https://dl.min.io/server/minio/release/linux-amd64/minio -O /usr/local/bin/minio; \ - elif [ "$TARGETPLATFORM" = "arm64" ]; then \ + elif [ "$TARGETARCH" = "arm64" ]; then \ wget https://dl.min.io/server/minio/release/linux-arm64/minio -O /usr/local/bin/minio; \ else \ - echo "Unsupported architecture: $TARGETPLATFORM"; exit 1; \ + echo "Unsupported architecture: $TARGETARCH"; exit 1; \ fi && \ chmod +x /usr/local/bin/minio