From 36d3505746dc00e175748e5202025eeab2816b74 Mon Sep 17 00:00:00 2001 From: Carl Pearson Date: Sat, 27 Sep 2025 05:47:11 -0600 Subject: [PATCH] fix deno install --- Dockerfile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index b1e76f4..1542aa0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,15 @@ FROM golang:1.23.3-bookworm AS builder ARG GIT_SHA="" - +# install yt-dlp RUN apt-get update && apt-get install -y --no-install-recommends --no-install-suggests wget RUN wget -q -d https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux -O /usr/local/bin/yt-dlp \ && chmod +x /usr/local/bin/yt-dlp +# install deno +RUN apt-get update && apt-get install -y --no-install-recommends --no-install-suggests curl unzip +RUN curl -fsSL https://deno.land/install.sh | sh + ADD *.go /src/. ADD config /src/config ADD database /src/database @@ -29,12 +33,14 @@ RUN apt-get update \ ffmpeg \ && rm -rf /var/lib/apt/lists/* - # install deno -RUN curl -fsSL https://deno.land/install.sh | sh -ENV PATH="/root/.deno/bin:$PATH" - +# copy yt-dlp COPY --from=0 /usr/local/bin/yt-dlp /usr/local/bin/yt-dlp COPY --from=0 /src/server /opt/server + +# copy deno +COPY --from=0 /root/.deno /root/.deno +ENV PATH="/root/.deno/bin:$PATH" + ADD templates /opt/templates ADD static /opt/static