Skip to content

Commit

Permalink
Enforce linux/amd64 platform for python
Browse files Browse the repository at this point in the history
The python example only works on linux/amd64 or at least linux/arm64 is
not supported. Also see timpalpant/mprofile#3.
  • Loading branch information
simonswine committed Nov 22, 2022
1 parent a22be89 commit f1f7b27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/docker-compose/python/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit f1f7b27

Please sign in to comment.