File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 1414** /.pytest_cache
1515** /.coverage
1616** /coverage.xml
17+ ** /target
18+ ** /* .rs.bk
19+ ** /.cargo /registry
20+ ** /.cargo /git
Original file line number Diff line number Diff line change @@ -21,11 +21,22 @@ RUN apt-get update \
2121RUN pip install -U pip
2222RUN pip install "poetry==$POETRY_VERSION"
2323
24+ # Install Rust toolchain and maturin
25+ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y \
26+ && . $HOME/.cargo/env \
27+ && pip install maturin \
28+ && rustc --version \
29+ && cargo --version
30+
31+ # Add cargo bin dir to PATH (so maturin + cargo available globally)
32+ ENV PATH="/root/.cargo/bin:${PATH}"
33+
2434WORKDIR /src
2535COPY services/rows/poetry.lock ./services/rows/poetry.lock
2636COPY services/rows/pyproject.toml ./services/rows/pyproject.toml
2737COPY libs/libcommon ./libs/libcommon
2838COPY libs/libapi ./libs/libapi
39+ COPY libs/libviewer ./libs/libviewer
2940WORKDIR /src/services/rows/
3041RUN poetry install --no-cache --no-root
3142COPY services/rows/src ./src
Original file line number Diff line number Diff line change @@ -21,11 +21,23 @@ RUN apt-get update \
2121RUN pip install -U pip
2222RUN pip install "poetry==$POETRY_VERSION"
2323
24+ # Install Rust toolchain and maturin
25+ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y \
26+ && . $HOME/.cargo/env \
27+ && pip install maturin \
28+ && rustc --version \
29+ && cargo --version
30+
31+ # Add cargo bin dir to PATH (so maturin + cargo available globally)
32+ ENV PATH="/root/.cargo/bin:${PATH}"
33+
2434WORKDIR /src
2535COPY libs/libcommon/poetry.lock ./libs/libcommon/poetry.lock
2636COPY libs/libcommon/pyproject.toml ./libs/libcommon/pyproject.toml
2737COPY libs/libapi/poetry.lock ./libs/libapi/poetry.lock
2838COPY libs/libapi/pyproject.toml ./libs/libapi/pyproject.toml
39+ COPY libs/libviewer/poetry.lock ./libs/libviewer/poetry.lock
40+ COPY libs/libviewer/pyproject.toml ./libs/libviewer/pyproject.toml
2941COPY services/rows/poetry.lock ./services/rows/poetry.lock
3042COPY services/rows/pyproject.toml ./services/rows/pyproject.toml
3143
You can’t perform that action at this time.
0 commit comments