mirror of
https://github.com/kristoferssolo/tg-relay-rs.git
synced 2026-02-04 06:42:09 +00:00
Compare commits
1 Commits
a4c08c51bd
...
465f9c49e9
| Author | SHA1 | Date | |
|---|---|---|---|
|
465f9c49e9
|
@@ -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 --no-default-features --features tiktok --features twitter --features youtube --recipe-path recipe.json
|
RUN cargo chef cook --release --recipe-path recipe.json
|
||||||
# Build application
|
# Build application
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN cargo build --release --no-default-features --features tiktok --features twitter --features youtube
|
RUN cargo build --release --no-default-features -F tiktok -F twitter -F 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 nodejs \
|
pkg-config libssl-dev ca-certificates ffmpeg \
|
||||||
&& 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
|
||||||
|
|||||||
Reference in New Issue
Block a user