From 09149223a6f8aa033a0214e86d9fcf518829fcd2 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Mon, 4 Dec 2023 22:06:17 +0800 Subject: [PATCH] Update dockerfile for crossplatform building --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9f5f54e..1e253da 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,5 @@ -# Use the official Python 3.11 image -# FROM --platform=arm64 python:3.11.4-bookworm -# ARG BUILDPLATFORM -FROM python:3.11.4-bookworm +ARG DOCKER_PLATFORM=$TARGETPLATFORM +FROM --platform=$DOCKER_PLATFORM python:3.11.4-bookworm ENV PYTHONBUFFERED 1