Update dockerfile for crossplatform building

This commit is contained in:
Keannu Bernasol 2023-12-04 22:06:17 +08:00
parent c43df90d77
commit 09149223a6

View file

@ -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