simplify Dockerfiles to use pre-built dist/eris instead of uv build
Remove all build-dependency packages (glfw-dev, cmake, git, python3-dev, libX11, mesa, etc.) that were only needed for building eris's Python deps from source. Replace uv + source install with COPY dist/eris. Use python3 /usr/local/bin/eris for ENTRYPOINT to avoid shebang portability issues.
This commit is contained in:
parent
daba0d3eb4
commit
e35e2aefd5
5 changed files with 20 additions and 44 deletions
|
|
@ -2,14 +2,11 @@
|
|||
|
||||
FROM alpine:3.24
|
||||
|
||||
RUN apk add gcc g++ make sudo python3-dev musl-dev git cmake glfw-dev pkgconfig libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libxext-dev wayland-dev libxkbcommon-dev mesa-dev
|
||||
RUN wget -qO- https://astral.sh/uv/install.sh | sh
|
||||
ENV PATH="/root/.local/bin:${PATH}"
|
||||
COPY . eris
|
||||
RUN uv tool install --python 3.14 ./eris
|
||||
RUN eris --install-all-tools
|
||||
RUN apk add sudo python3
|
||||
COPY dist/eris /usr/local/bin/eris
|
||||
RUN python3 /usr/local/bin/eris --install-all-tools
|
||||
|
||||
ENTRYPOINT ["eris"]
|
||||
ENTRYPOINT ["python3", "/usr/local/bin/eris"]
|
||||
|
||||
|
||||
# docker build -t eris -f packaging/Dockerfile.arch .
|
||||
|
|
|
|||
|
|
@ -2,15 +2,11 @@
|
|||
|
||||
FROM archlinux:latest
|
||||
|
||||
RUN pacman -Sy --noconfirm gcc python make git cmake glfw pkg-config libx11 libxcursor libxrandr libxinerama libxi libxext wayland libxkbcommon mesa sudo
|
||||
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
ENV PATH="/root/.local/bin:${PATH}"
|
||||
COPY . eris
|
||||
RUN uv tool install --python 3.14 ./eris
|
||||
RUN chmod a+rwx -R /root
|
||||
RUN eris --install-all-tools
|
||||
RUN pacman -Sy --noconfirm sudo python
|
||||
COPY dist/eris /usr/local/bin/eris
|
||||
RUN python3 /usr/local/bin/eris --install-all-tools
|
||||
|
||||
ENTRYPOINT ["eris"]
|
||||
ENTRYPOINT ["python3", "/usr/local/bin/eris"]
|
||||
|
||||
|
||||
# docker build -t eris -f packaging/Dockerfile.arch .
|
||||
|
|
|
|||
|
|
@ -2,17 +2,11 @@
|
|||
|
||||
FROM debian:trixie
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y build-essential curl git cmake libglfw3-dev pkg-config libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libxext-dev libwayland-dev libxkbcommon-dev libegl1-mesa-dev python3-dev
|
||||
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
ENV PATH="/root/.local/bin:${PATH}"
|
||||
COPY . eris
|
||||
RUN uv tool install --python 3.14 ./eris
|
||||
RUN chmod a+rwx -R /root
|
||||
RUN apt-get install -y sudo
|
||||
RUN eris --install-all-tools
|
||||
RUN apt-get update && apt-get install -y sudo python3
|
||||
COPY dist/eris /usr/local/bin/eris
|
||||
RUN python3 /usr/local/bin/eris --install-all-tools
|
||||
|
||||
ENTRYPOINT ["eris"]
|
||||
ENTRYPOINT ["python3", "/usr/local/bin/eris"]
|
||||
|
||||
|
||||
# docker build -t eris -f packaging/Dockerfile.debian .
|
||||
|
|
|
|||
|
|
@ -2,16 +2,11 @@
|
|||
|
||||
FROM fedora:44
|
||||
|
||||
RUN dnf -y install gcc gcc-c++ make curl git cmake glfw-devel pkgconfig libX11-devel libXcursor-devel libXrandr-devel libXinerama-devel libXi-devel libXext-devel wayland-devel libxkbcommon-devel mesa-libEGL-devel python3-devel
|
||||
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
ENV PATH="/root/.local/bin:${PATH}"
|
||||
COPY . eris
|
||||
RUN uv tool install --python 3.14 ./eris
|
||||
RUN chmod a+rwx -R /root
|
||||
RUN dnf -y install sudo
|
||||
RUN eris --install-all-tools
|
||||
RUN dnf -y install sudo python3
|
||||
COPY dist/eris /usr/local/bin/eris
|
||||
RUN python3 /usr/local/bin/eris --install-all-tools
|
||||
|
||||
ENTRYPOINT ["eris"]
|
||||
ENTRYPOINT ["python3", "/usr/local/bin/eris"]
|
||||
|
||||
|
||||
# docker build -t eris -f packaging/Dockerfile.fedora .
|
||||
|
|
|
|||
|
|
@ -2,17 +2,11 @@
|
|||
|
||||
FROM ubuntu:26.04
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y build-essential curl git cmake libglfw3-dev pkg-config libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libxext-dev libwayland-dev libxkbcommon-dev libegl1-mesa-dev python3-dev
|
||||
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
ENV PATH="/root/.local/bin:${PATH}"
|
||||
COPY . eris
|
||||
RUN uv tool install --python 3.14 ./eris
|
||||
RUN chmod a+rwx -R /root
|
||||
RUN apt-get install -y sudo
|
||||
RUN eris --install-all-tools
|
||||
RUN apt-get update && apt-get install -y sudo python3
|
||||
COPY dist/eris /usr/local/bin/eris
|
||||
RUN python3 /usr/local/bin/eris --install-all-tools
|
||||
|
||||
ENTRYPOINT ["eris"]
|
||||
ENTRYPOINT ["python3", "/usr/local/bin/eris"]
|
||||
|
||||
|
||||
# docker build -t eris -f packaging/Dockerfile.ubuntu .
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue