<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">Bootstrap: docker
From: python:3.9

%environment
export PYTHONPATH=.

%files
    ./setup.py
    ./combo

%post

    # run dpkg (behind other tools like apt-get) without interactive dialogue

    export DEBIAN_FRONTEND=noninteractive

    apt-get -y update

    apt-get -y install git ffmpeg virtualenv libopenmpi-dev openmpi-bin openmpi-common python3-pip python3-dev g++ gcc

    # upgrade system pip, see: https://stackoverflow.com/a/49836753/7983111

    apt-get -y install build-essential

    python3 -m pip install --upgrade pip

    # install python dependencies
    #python3 -m pip install -r requirements.txt
    #python3 -m pip install -r requirements_no_deps.txt --no-dependencies
    python3 -m pip install .
    python3 -m pip install protobuf
    python3 -m spacy download en_core_web_sm

%runscript
    python3 -u ./combo/main.py "$@"
</pre></body></html>