The repository needs seven development packages plus libcurl transitives, which is where a fresh clone usually stops. The Dockerfile pins them on Debian trixie and builds the binary; README-REPRO explains the native path (start.sh already installs per-OS) and the container path, including the USB flags the sequence needs at run time.
27 lines
946 B
Docker
27 lines
946 B
Docker
# syntax=docker/dockerfile:1
|
|
# Build reproducible de tr4mpass con todas sus dependencias dentro de un
|
|
# contenedor, sin tocar el sistema. Debian trixie == el host de desarrollo.
|
|
FROM debian:trixie-slim
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
build-essential pkg-config \
|
|
libimobiledevice-dev libirecovery-1.0-dev libusb-1.0-0-dev libplist-dev \
|
|
libssl-dev libcurl4-openssl-dev libssh2-1-dev \
|
|
usbutils usbmuxd ca-certificates \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /build
|
|
|
|
# Solo lo que make necesita: Makefile, src/, include/ y tests/ (el target
|
|
# .chip-db-canary depende de tests/chip_db_canary.c).
|
|
COPY Makefile ./
|
|
COPY src ./src
|
|
COPY include ./include
|
|
COPY tests ./tests
|
|
|
|
RUN make clean && make
|
|
|
|
# El binario queda en /build/tr4mpass.
|
|
# Correr con acceso USB directo:
|
|
# podman run --rm -it --privileged -v /dev/bus/usb:/dev/bus/usb tr4mpass ./tr4mpass -v
|
|
CMD ["/bin/bash"]
|