Skip to content
Merged

Dev #11

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Dockerfile.ytserver
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
FROM rust:1.83-slim AS rust-builder
WORKDIR /build
RUN apt-get update && apt-get install -y python3 python3-pip && rm -rf /var/lib/apt/lists/* \
&& pip3 install --no-cache-dir --break-system-packages "maturin>=1.7,<2.0"
COPY automap_rs/ ./automap_rs/
RUN cd automap_rs && maturin build --release --interpreter python3 --out /wheels

FROM python:3.12-slim


Expand All @@ -14,6 +21,9 @@ WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY --from=rust-builder /wheels/*.whl /tmp/
RUN pip install --no-cache-dir /tmp/*.whl && rm -f /tmp/*.whl


COPY yt-dlp_serv.py sticker_themes.py extra_stickers.py server_runtime.py render_progress.py video_text.py video_stickers.py video_render.py ./
COPY resources/fonts/ resources/fonts/
Expand Down
180 changes: 180 additions & 0 deletions automap_rs/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions automap_rs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[package]
name = "automap_rs"
version = "0.1.0"
edition = "2021"

[lib]
name = "automap_rs"
crate-type = ["cdylib"]

[dependencies]
pyo3 = { version = "0.23", features = ["extension-module", "abi3-py310"] }
9 changes: 9 additions & 0 deletions automap_rs/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[build-system]
requires = ["maturin>=1.7,<2.0"]
build-backend = "maturin"

[project]
name = "automap_rs"
version = "0.1.0"
requires-python = ">=3.10"
dependencies = []
Loading
Loading