Files
Mateusz Gruszczyński c30064b531
build / test (push) Canceled after 0s
build / deb (amd64) (push) Canceled after 0s
build / deb (arm64) (push) Canceled after 0s
build / deb (armhf) (push) Canceled after 0s
first commit
2026-11-16 16:19:21 +01:00

18 lines
875 B
Docker
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Builder image for simply-dvb .deb packages (amd64, arm64, armhf) – used by scripts/build-deb.sh.
# Contains: Rust + targets, zig (cross-compilation with a fixed glibc baseline), cargo-zigbuild, cargo-deb.
FROM rust:1-bookworm
RUN apt-get update \
&& apt-get install -y --no-install-recommends python3-pip dpkg-dev \
&& rm -rf /var/lib/apt/lists/* \
&& pip3 install --no-cache-dir --break-system-packages ziglang \
&& printf '#!/bin/sh\nexec python3 -m ziglang "$@"\n' > /usr/local/bin/zig \
&& chmod 755 /usr/local/bin/zig \
&& rustup target add x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu armv7-unknown-linux-gnueabihf \
&& cargo install --locked cargo-deb cargo-zigbuild \
&& rm -rf /usr/local/cargo/registry /usr/local/cargo/git \
&& chmod -R a+rX /usr/local/cargo /usr/local/rustup
ENV SIMPLY_DVB_IN_DOCKER=1
WORKDIR /src