ARG IMAGE_NAME
ARG IMAGE_VERSION
FROM ${IMAGE_NAME}:${IMAGE_VERSION}
RUN pip install --upgrade pip setuptools
RUN curl -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
WORKDIR /opt/rustpy
COPY rust-toolchain.toml .
COPY pyproject.toml .
COPY README.md .
COPY pytest.ini .
COPY Cargo.toml .
COPY setup.py .
COPY rustpy rustpy
COPY src src
COPY tests tests
RUN pip install -e .[tests]