Skip to content

Commit 8d89971

Browse files
committed
use arch as base image
1 parent dcbf89b commit 8d89971

File tree

1 file changed

+21
-26
lines changed

1 file changed

+21
-26
lines changed

client_env/Dockerfile

+21-26
Original file line numberDiff line numberDiff line change
@@ -24,43 +24,39 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
2424
upx --lzma -9 client && \
2525
upx --lzma -9 reaper
2626

27-
FROM ubuntu:24.04 AS image-full
27+
FROM archlinux:base-devel-20241110.0.278197 AS image-full
2828

29-
ENV PIP_BREAK_SYSTEM_PACKAGES=1
29+
ENV PIP_BREAK_SYSTEM_PACKAGES=1 UV_BREAK_SYSTEM_PACKAGES=1
3030

3131
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
3232

33-
ARG DEBIAN_FRONTEND=noninteractive
34-
RUN --mount=type=cache,sharing=private,target=/var/cache/apt \
35-
apt-get update && \
36-
apt-get install -y \
37-
build-essential \
33+
RUN --mount=type=cache,sharing=private,target=/var/cache/pacman \
34+
pacman --noconfirm -Sy \
35+
blas \
3836
curl \
3937
dbus \
4038
dnsutils \
4139
file \
4240
gcc \
43-
libblas-dev \
44-
libjpeg8-dev \
45-
liblapack-dev \
46-
libmpc-dev \
47-
libmpfr-dev \
48-
libpng-dev \
49-
libssl-dev \
41+
lapack \
42+
libjpeg-turbo \
43+
libmpc \
44+
libpng \
45+
mpfr \
5046
net-tools \
51-
netcat-openbsd \
52-
python-is-python3 \
53-
python3 \
54-
python3-dev \
55-
python3-pip \
56-
python3-venv \
47+
openbsd-netcat \
48+
openssl \
49+
python \
50+
python-pip \
51+
python-virtualenv \
52+
uv \
5753
vim \
5854
wget && \
59-
rm -rf /var/lib/apt/lists/*
55+
rm -rf /var/lib/pacman/*
6056

6157
COPY client_env/requirements.txt /requirements.txt
6258
RUN --mount=type=cache,target=/root/.cache/pip \
63-
pip install -r /requirements.txt
59+
uv pip install --system -r /requirements.txt
6460

6561
COPY --from=build /app/client /usr/local/bin/neo
6662
COPY --from=build /app/reaper /usr/local/bin/reaper
@@ -73,11 +69,10 @@ ENTRYPOINT ["/entrypoint.sh"]
7369

7470
FROM image-full AS image-full-sage
7571

76-
RUN --mount=type=cache,sharing=private,target=/var/cache/apt \
77-
apt-get update && \
78-
apt-get install -y \
72+
RUN --mount=type=cache,sharing=private,target=/var/cache/pacman \
73+
pacman --noconfirm -Sy --overwrite '*' \
7974
sagemath && \
80-
rm -rf /var/lib/apt/lists/*
75+
rm -rf /var/lib/pacman/*
8176

8277
FROM alpine:3.20 AS image-light
8378

0 commit comments

Comments
 (0)