FROM python:3.9-slim

COPY ./python/example/docker_scheduling_demo/requirements.txt ./requirements.txt

ENV PIP_EXTRA_INDEX_URL=https://pypi.numerously.com/simple/

RUN pip install -r ./requirements.txt

COPY ./python/client ./client

RUN pip install ./client

COPY ./python/example/docker_scheduling_demo ./docker_scheduling_demo

CMD python ./docker_scheduling_demo/src/main.py

#Client configuration (for running image locally)
#ENV NUMEROUS_EXECUTION_ID="02f7595f-964e-4439-9e9a-ee128bf9c10b"