Update YouTube support and add Gitea GPU build

This commit is contained in:
Coder
2026-09-02 16:41:54 +07:00
parent adcd186a2c
commit 33d74cded0
7 changed files with 66 additions and 6 deletions

View File

@@ -1,9 +1,17 @@
ARG DENO_VERSION=2.9.5
ARG YT_DLP_VERSION=2026.08.19
FROM denoland/deno:bin-${DENO_VERSION} AS deno_cache
# YT-DLP Download and setup
FROM --platform=$BUILDPLATFORM golang:bookworm AS ytdlp_cache
ARG TARGETOS
ARG TARGETARCH
ARG YT_DLP_VERSION
ARG YT_DLP_SHA256=1fa6733c37ea6fb51c99ad8fe785e7b7e5f3246c9b980230329d4fb72ed8d4d6
RUN apt update && apt install -y wget
RUN wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O /usr/local/bin/yt-dlp
RUN wget "https://github.com/yt-dlp/yt-dlp/releases/download/${YT_DLP_VERSION}/yt-dlp" -O /usr/local/bin/yt-dlp \
&& echo "${YT_DLP_SHA256} /usr/local/bin/yt-dlp" | sha256sum -c -
RUN chmod a+rx /usr/local/bin/yt-dlp
# Backend setup
@@ -76,6 +84,7 @@ COPY --from=frontend-prod-deps /app/node_modules /app/frontend/node_modules
COPY --from=backend-builder /app/whishper /bin/whishper
RUN chmod a+rx /bin/whishper
COPY --from=ytdlp_cache /usr/local/bin/yt-dlp /bin/yt-dlp
COPY --from=deno_cache /deno /bin/deno
# Nginx setup
COPY ./nginx.conf /etc/nginx/nginx.conf