Skip to content

Commit

Permalink
intall local built flyteidl-rust
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Liu <[email protected]>
  • Loading branch information
austin362667 committed Aug 27, 2024
1 parent ce18b6f commit 5b69e4e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile.rust
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ ENV PATH="/root/.cargo/bin:${PATH}"
# Install maturin to build Python bindings with PyO3
RUN pip install maturin

# RUN git clone -b flyrs https://github.com/austin362667/flyte.git
RUN git clone -b flyrs https://github.com/austin362667/flyte.git

# Build the Python bindings
# RUN --mount=type=cache,target=/usr/local/cargo/registry maturin build --release --out dist -m flyte/flyteidl/Cargo.toml
RUN --mount=type=cache,target=/usr/local/cargo/registry maturin build --release --out dist -m flyte/flyteidl/Cargo.toml


# Stage 2: Runtime environment: The fresh and final base image
Expand All @@ -37,8 +37,7 @@ FROM python:${PYTHON_VERSION}-slim-bookworm
COPY --from=builder dist/*.whl .

# Install the built `flyteidl-rust` Python package locally
# RUN pip install *.whl
RUN pip install -i https://test.pypi.org/simple/ flyteidl-rust
RUN pip install *.whl


MAINTAINER Flyte Team <[email protected]>
Expand Down

0 comments on commit 5b69e4e

Please sign in to comment.