From f1f7b277a6aec1dee45a07a91fe7cd7692a3da07 Mon Sep 17 00:00:00 2001 From: Christian Simon Date: Tue, 22 Nov 2022 10:58:45 +0000 Subject: [PATCH] Enforce linux/amd64 platform for python The python example only works on linux/amd64 or at least linux/arm64 is not supported. Also see https://github.com/timpalpant/mprofile/issues/3. --- tools/docker-compose/python/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/docker-compose/python/Dockerfile b/tools/docker-compose/python/Dockerfile index 5c12506389..46251ef472 100644 --- a/tools/docker-compose/python/Dockerfile +++ b/tools/docker-compose/python/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.10 as builder +FROM --platform=linux/amd64 python:3.10 AS builder # Install build-base to allow for compilation of the profiling agent. RUN apt-get update && apt-get install -y build-essential git @@ -7,7 +7,7 @@ RUN apt-get update && apt-get install -y build-essential git COPY requirements.txt . RUN pip3 wheel --wheel-dir=/tmp/wheels -r requirements.txt -FROM python:3.10 +FROM --platform=linux/amd64 python:3.10 # Copy over the directory containing wheels for the profiling agent. COPY --from=builder /tmp/wheels /tmp/wheels