Skip to content

Commit 24db21f

Browse files
authored
Merge pull request #78 from gschmutz/multi-arch-dockerfile
update Dockerfile to better support Apple silicon (multi-arch images)
2 parents 645248c + 16e74fc commit 24db21f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1-
FROM python:3.11-slim-buster
1+
FROM --platform=$BUILDPLATFORM python:3.11-slim
22

33
WORKDIR /app
44

55
RUN apt-get update && apt-get install -y --no-install-recommends \
66
curl \
77
ca-certificates \
88
build-essential \
9+
python3-dev \
10+
libssl-dev \
11+
libffi-dev \
12+
rustc \
13+
cargo \
914
&& rm -rf /var/lib/apt/lists/*
1015

11-
# 1) Install uv package manager
12-
# By default, uv installs to ~/.local/bin. We update PATH so uv is recognized.
13-
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
16+
# Install uv package manager (use pip for safer cross-arch install)
17+
RUN pip install uv
1418
ENV PATH="/root/.local/bin:${PATH}"
1519

1620
# 2) Copy the repository content

0 commit comments

Comments
 (0)