Skip to content

Commit

Permalink
use arch as base image
Browse files Browse the repository at this point in the history
  • Loading branch information
asokol123 committed Nov 11, 2024
1 parent dcbf89b commit 8d89971
Showing 1 changed file with 21 additions and 26 deletions.
47 changes: 21 additions & 26 deletions client_env/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,43 +24,39 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
upx --lzma -9 client && \
upx --lzma -9 reaper

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

ENV PIP_BREAK_SYSTEM_PACKAGES=1
ENV PIP_BREAK_SYSTEM_PACKAGES=1 UV_BREAK_SYSTEM_PACKAGES=1

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

ARG DEBIAN_FRONTEND=noninteractive
RUN --mount=type=cache,sharing=private,target=/var/cache/apt \
apt-get update && \
apt-get install -y \
build-essential \
RUN --mount=type=cache,sharing=private,target=/var/cache/pacman \
pacman --noconfirm -Sy \
blas \
curl \
dbus \
dnsutils \
file \
gcc \
libblas-dev \
libjpeg8-dev \
liblapack-dev \
libmpc-dev \
libmpfr-dev \
libpng-dev \
libssl-dev \
lapack \
libjpeg-turbo \
libmpc \
libpng \
mpfr \
net-tools \
netcat-openbsd \
python-is-python3 \
python3 \
python3-dev \
python3-pip \
python3-venv \
openbsd-netcat \
openssl \
python \
python-pip \
python-virtualenv \
uv \
vim \
wget && \
rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/pacman/*

COPY client_env/requirements.txt /requirements.txt
RUN --mount=type=cache,target=/root/.cache/pip \
pip install -r /requirements.txt
uv pip install --system -r /requirements.txt

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

FROM image-full AS image-full-sage

RUN --mount=type=cache,sharing=private,target=/var/cache/apt \
apt-get update && \
apt-get install -y \
RUN --mount=type=cache,sharing=private,target=/var/cache/pacman \
pacman --noconfirm -Sy --overwrite '*' \
sagemath && \
rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/pacman/*

FROM alpine:3.20 AS image-light

Expand Down

0 comments on commit 8d89971

Please sign in to comment.