pos nomas

This commit is contained in:
aguitauwu
2026-02-16 11:41:18 -06:00
parent d0d85c8fb5
commit 5a4b5b83dd
24 changed files with 1021 additions and 199 deletions

21
Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
FROM rust:1.75 as builder
WORKDIR /build
COPY yuubox-core ./yuubox-core
COPY pyproject.toml ./
RUN apt-get update && apt-get install -y python3-dev python3-pip
RUN pip3 install maturin
RUN maturin build --release --manifest-path yuubox-core/Cargo.toml
FROM python:3.11-slim
WORKDIR /app
COPY --from=builder /build/target/wheels/*.whl ./
COPY yuubox ./yuubox
COPY pyproject.toml ./
RUN pip install *.whl
RUN pip install ".[api]"
CMD ["uvicorn", "yuubox.api:app", "--host", "0.0.0.0", "--port", "8000"]