From 2abbb5eb44246502b0c3ad156c384815e7885249 Mon Sep 17 00:00:00 2001 From: dariusz Date: Mon, 29 Jun 2026 11:23:31 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20dodaj=20runtime=20JS=20deno=20do=20obraz?= =?UTF-8?q?u=20API=20=E2=80=94=20yt-dlp=20wymaga=20go=20do=20ekstrakcji=20?= =?UTF-8?q?YouTube=20(bez=20niego=20job=20konczyl=20sie=20kodem=201)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 (1M context) --- apps/api/Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/api/Dockerfile b/apps/api/Dockerfile index a0b900b..d993a14 100644 --- a/apps/api/Dockerfile +++ b/apps/api/Dockerfile @@ -10,12 +10,17 @@ RUN npm run build && npm prune --omit=dev FROM node:20-bookworm-slim AS runtime WORKDIR /app RUN apt-get update \ - && apt-get install -y --no-install-recommends ffmpeg ca-certificates curl \ + && apt-get install -y --no-install-recommends ffmpeg ca-certificates curl unzip \ && curl -fsSL https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux \ -o /usr/local/bin/yt-dlp \ && chmod a+rx /usr/local/bin/yt-dlp \ && yt-dlp --version \ - && apt-get purge -y curl && apt-get autoremove -y && rm -rf /var/lib/apt/lists/* + # deno: runtime JS wymagany przez yt-dlp do ekstrakcji YouTube (auto-wykrywany w PATH) + && curl -fsSL https://github.com/denoland/deno/releases/latest/download/deno-x86_64-unknown-linux-gnu.zip \ + -o /tmp/deno.zip \ + && unzip -q -d /usr/local/bin /tmp/deno.zip && chmod a+rx /usr/local/bin/deno && rm /tmp/deno.zip \ + && deno --version \ + && apt-get purge -y curl unzip && apt-get autoremove -y && rm -rf /var/lib/apt/lists/* COPY apps/api/package.json ./ COPY --from=build /app/node_modules ./node_modules