Bootstrap: docker From: debian:trixie %labels Author ATGC Tool PhySIC_IST %post set -e export DEBIAN_FRONTEND=noninteractive dpkg --add-architecture i386 apt-get update apt-get install -y --no-install-recommends \ ca-certificates \ git \ libc6-i386 \ libstdc++6:i386 git clone --depth 1 --branch master https://gite.lirmm.fr/atgc/atgc_physic_ist.git /opt/atgc_physic_ist BINARY_PATH="$(find /opt/atgc_physic_ist -type f \( -name 'PhySIC_IST_Linux32' -o -name 'physic_linux' \) -print -quit)" if [ -z "${BINARY_PATH}" ]; then echo "Unable to locate PhySIC_IST executable in cloned repository." >&2 exit 1 fi cp "${BINARY_PATH}" /usr/local/bin/physic_ist chmod +x /usr/local/bin/physic_ist apt-get clean rm -rf /var/lib/apt/lists/* %environment export PATH=/usr/local/bin:$PATH %runscript exec /usr/local/bin/physic_ist "$@"