From 5ad27eff0b900ecb48e256b9748fb9c6829bff75 Mon Sep 17 00:00:00 2001 From: mathdugre <16450132+mathdugre@users.noreply.github.com> Date: Thu, 20 Jun 2024 13:32:47 +0900 Subject: [PATCH] [FIX] Building Docker image on M1 Macbook. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f8fe67c2fa..fd226a8f75 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,7 +40,7 @@ RUN python -m build /src # # Utilities for downloading packages -FROM ${BASE_IMAGE} as downloader +FROM --platform=linux/amd64 ${BASE_IMAGE} as downloader # Bump the date to current to refresh curl/certificates/etc RUN echo "2023.11.09" @@ -100,7 +100,7 @@ RUN /opt/conda/envs/sdcflows/bin/pip install --no-cache-dir -r /tmp/requirements # # Main stage # -FROM ${BASE_IMAGE} as sdcflows +FROM --platform=linux/amd64 ${BASE_IMAGE} as sdcflows # Configure apt ENV DEBIAN_FRONTEND="noninteractive" \