Docker: Install zlib (#6444)

* Docker: Install zlib
* Use `ENV key=value` format instead
* Use system zlib for Rizin as well
This commit is contained in:
Khairul Azhar Kasmiran 2026-05-31 21:03:16 +08:00 committed by GitHub
parent 486dc11548
commit 8e53f7d9ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,8 +41,8 @@ ARG with_arm32_as
ARG with_arm64_as ARG with_arm64_as
ARG with_ppc_as ARG with_ppc_as
ENV RZ_PIPE_PY_VERSION ${RZ_PIPE_PY_VERSION} ENV RZ_PIPE_PY_VERSION=${RZ_PIPE_PY_VERSION}
ENV RZ_GHIDRA_VERSION ${RZ_GHIDRA_VERSION} ENV RZ_GHIDRA_VERSION=${RZ_GHIDRA_VERSION}
RUN echo -e "Building versions:\n\ RUN echo -e "Building versions:\n\
RZ_PIPE_PY_VERSION=${RZ_PIPE_PY_VERSION}\ RZ_PIPE_PY_VERSION=${RZ_PIPE_PY_VERSION}\
@ -59,6 +59,7 @@ RUN apt-get install -y --no-install-recommends \
make \ make \
pkg-config \ pkg-config \
libc-dev-bin libc6-dev linux-libc-dev \ libc-dev-bin libc6-dev linux-libc-dev \
zlib1g-dev \
python3-pip \ python3-pip \
python3-setuptools \ python3-setuptools \
python3-wheel \ python3-wheel \
@ -72,7 +73,7 @@ RUN pip3 install meson tomli
COPY . /tmp/rizin/ COPY . /tmp/rizin/
WORKDIR /tmp/rizin WORKDIR /tmp/rizin
RUN meson setup --prefix=/usr -Dinstall_sigdb=true /tmp/build && \ RUN meson setup --prefix=/usr -Dinstall_sigdb=true -Duse_sys_zlib=enabled /tmp/build && \
meson compile -C /tmp/build && \ meson compile -C /tmp/build && \
meson install --destdir /tmp/rizin-install -C /tmp/build meson install --destdir /tmp/rizin-install -C /tmp/build
@ -95,7 +96,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates
USER rizin USER rizin
WORKDIR /home/rizin WORKDIR /home/rizin
ENV HOME /home/rizin ENV HOME=/home/rizin
COPY --from=0 /tmp/rizin-install/ / COPY --from=0 /tmp/rizin-install/ /