ARG IMAGE_NAME
ARG IMAGE_VERSION

FROM ${IMAGE_NAME}:${IMAGE_VERSION}

RUN pip install --upgrade pip setuptools setuptools_rust

WORKDIR /opt/rithm

COPY requirements.txt .
RUN pip install -r requirements.txt

COPY requirements-tests.txt .
RUN pip install -r requirements-tests.txt

COPY requirements-setup.txt .
COPY README.md .
COPY pytest.ini .
COPY setup.py .
COPY rithm rithm
COPY tests tests

RUN pip install -e .
