Bootstrap: docker
From: ubuntu:22.04

%post
    apt-get update && apt-get install -y --no-install-recommends \
        bash ca-certificates bzip2 gzip tar \
        libstdc++6 libgomp1 \
        && rm -rf /var/lib/apt/lists/*
    mkdir -p /opt/env

%files
    pep.tar.gz /opt/env/pep.tar.gz

%post
    cd /opt/env
    tar -xzf pep.tar.gz
    rm pep.tar.gz
    # conda-pack fixups
    /opt/env/bin/conda-unpack || true

%environment
    export PATH=/opt/env/bin:$PATH

%runscript
    exec "$@"
