Skip to content

Commit 445f60e

Browse files
committed
Fix build error
1 parent 374530e commit 445f60e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/fastapi/docker_files.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -646,17 +646,17 @@ RUN uv venv -p {python_version}
646646
647647
COPY pyproject.toml Cargo.toml Cargo.lock README.md LICENSE ./
648648
COPY src/ ./src
649+
RUN md {source_dir}
649650
650651
RUN --mount=type=cache,target=/app/target/ \
651652
--mount=type=cache,target=/usr/local/cargo/git/db \
652653
--mount=type=cache,target=/usr/local/cargo/registry/ \
653-
uv tool run maturin build -r --out dist/
654+
uv tool run maturin develop -r
654655
655656
COPY uv.lock ./
656657
657658
RUN --mount=type=cache,target=/root/.cache/uv \
658659
uv sync --locked --no-dev --no-install-project \
659-
&& uv pip install dist/*.whl
660660
661661
COPY . /app
662662
@@ -733,17 +733,17 @@ RUN python{python_version} -m venv .venv
733733
734734
COPY pyproject.toml Cargo.toml Cargo.lock README.md LICENSE ./
735735
COPY src/ ./src
736+
RUN md {source_dir}
736737
737738
RUN --mount=type=cache,target=/app/target/ \
738739
--mount=type=cache,target=/usr/local/cargo/git/db \
739740
--mount=type=cache,target=/usr/local/cargo/registry/ \
740-
uv tool run maturin build -r --out dist/
741+
uv tool run maturin develop -r
741742
742743
COPY requirements.txt ./
743744
744745
RUN --mount=type=cache,target=/root/.cache/uv \
745-
&& .venv/bin/python -m pip install -r requirements.txt \
746-
&& .venv/bin/python -m pip install dist/*.whl
746+
.venv/bin/python -m pip install -r requirements.txt
747747
748748
COPY . /app
749749

0 commit comments

Comments
 (0)