FROM python:3.12
ENV INSTALL_DIR /opt/labscheduler

RUN pip install --upgrade pip

COPY ./src/ $INSTALL_DIR/src
COPY ./pyproject.toml $INSTALL_DIR/
COPY ./README.md $INSTALL_DIR/
COPY tests/ $INSTALL_DIR/tests/
RUN ls -la $INSTALL_DIR
RUN pip install -e $INSTALL_DIR
RUN pip install "$INSTALL_DIR[mipsolver]" "$INSTALL_DIR[cpsolver]"

CMD ["labscheduler",  "--lab-config-path",  "/opt/labscheduler/tests/test_data/lab_config_example.yaml"]