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/isync COPY rust-toolchain.toml . COPY README.md . COPY pyproject.toml . COPY Cargo.toml . COPY setup.py . COPY isync isync COPY src src COPY tests tests RUN pip install -e .