Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Commit d00e399

Browse files
committed
Enforce linux/amd64 platform for python
The python example only works on linux/amd64 or at least linux/arm64 is not supported. Also see timpalpant/mprofile#3.
1 parent ca8a4aa commit d00e399

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/docker-compose/python/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.10 as builder
1+
FROM --platform=linux/amd64 python:3.10 AS builder
22

33
# Install build-base to allow for compilation of the profiling agent.
44
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
77
COPY requirements.txt .
88
RUN pip3 wheel --wheel-dir=/tmp/wheels -r requirements.txt
99

10-
FROM python:3.10
10+
FROM --platform=linux/amd64 python:3.10
1111

1212
# Copy over the directory containing wheels for the profiling agent.
1313
COPY --from=builder /tmp/wheels /tmp/wheels

0 commit comments

Comments
 (0)