Skip to content

Commit f603faf

Browse files
committed
Fix arm
1 parent 4e22319 commit f603faf

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

Dockerfile

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,35 +48,32 @@ RUN \
4848
echo "**** install build packages ****" && \
4949
apt-get update && \
5050
apt-get install -y --no-install-recommends \
51-
build-essential \
5251
clang \
53-
cmake \
5452
gcc \
5553
git \
5654
libre2-dev \
5755
ninja-build \
58-
pkg-config \
59-
python3 \
60-
python3-dev && \
56+
pkg-config && \
6157
curl -o /tmp/uv-installer.sh -L https://astral.sh/uv/install.sh && \
6258
sh /tmp/uv-installer.sh && \
6359
uv python install `cat .python-version` && \
64-
uv sync --no-dev --locked --no-cache && \
60+
case "$(uname -m)" in \
61+
'x86_64') export ARGS='' ;; \
62+
'aarch64') export ARGS='--no-install-package pycryptodome' ;; \
63+
esac && \
64+
uv sync --no-dev --locked --no-cache $ARGS && \
6565
echo "**** install runtime packages ****" && \
6666
apt-get install -y \
6767
gnupg \
6868
libre2-10 && \
6969
echo "**** cleanup ****" && \
7070
apt-get purge -y \
71-
build-essential \
7271
clang \
73-
cmake \
7472
gcc \
7573
git \
7674
libre2-dev \
7775
ninja-build \
78-
pkg-config \
79-
python3-dev && \
76+
pkg-config && \
8077
apt-get autoremove -y && \
8178
apt-get autoclean -y && \
8279
rm -rf \

0 commit comments

Comments
 (0)