Compare commits

..

2 Commits

Author SHA1 Message Date
a4c08c51bd fix: add nodejs dependency 2026-01-17 15:39:47 +02:00
a913552511 refactor: improve idiomaticity and async correctness
fix
2026-01-17 15:39:38 +02:00

View File

@@ -10,10 +10,10 @@ RUN cargo chef prepare --recipe-path recipe.json
FROM chef AS builder-rs FROM chef AS builder-rs
COPY --from=planner /app/recipe.json recipe.json COPY --from=planner /app/recipe.json recipe.json
# Build dependencies - this is the caching Docker layer! # Build dependencies - this is the caching Docker layer!
RUN cargo chef cook --release --recipe-path recipe.json RUN cargo chef cook --release --no-default-features --features tiktok --features twitter --features youtube --recipe-path recipe.json
# Build application # Build application
COPY . . COPY . .
RUN cargo build --release --no-default-features -F tiktok -F twitter -F youtube RUN cargo build --release --no-default-features --features tiktok --features twitter --features youtube
FROM ghcr.io/astral-sh/uv:trixie-slim AS builder-py FROM ghcr.io/astral-sh/uv:trixie-slim AS builder-py
@@ -30,7 +30,7 @@ RUN uv python install 3.13
RUN apt-get update -y \ RUN apt-get update -y \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends \
pkg-config libssl-dev ca-certificates ffmpeg \ pkg-config libssl-dev ca-certificates ffmpeg nodejs \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN --mount=type=cache,target=/root/.cache/uv RUN --mount=type=cache,target=/root/.cache/uv