fix deno install
All checks were successful
Build and Deploy ytdlp-site / build-deploy (push) Successful in 1m43s
All checks were successful
Build and Deploy ytdlp-site / build-deploy (push) Successful in 1m43s
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -1,11 +1,15 @@
|
|||||||
FROM golang:1.23.3-bookworm AS builder
|
FROM golang:1.23.3-bookworm AS builder
|
||||||
ARG GIT_SHA="<not provided>"
|
ARG GIT_SHA="<not provided>"
|
||||||
|
|
||||||
|
# install yt-dlp
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends --no-install-suggests wget
|
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 \
|
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
|
&& 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 *.go /src/.
|
||||||
ADD config /src/config
|
ADD config /src/config
|
||||||
ADD database /src/database
|
ADD database /src/database
|
||||||
@@ -29,12 +33,14 @@ RUN apt-get update \
|
|||||||
ffmpeg \
|
ffmpeg \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# install deno
|
# copy yt-dlp
|
||||||
RUN curl -fsSL https://deno.land/install.sh | sh
|
|
||||||
ENV PATH="/root/.deno/bin:$PATH"
|
|
||||||
|
|
||||||
COPY --from=0 /usr/local/bin/yt-dlp /usr/local/bin/yt-dlp
|
COPY --from=0 /usr/local/bin/yt-dlp /usr/local/bin/yt-dlp
|
||||||
COPY --from=0 /src/server /opt/server
|
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 templates /opt/templates
|
||||||
ADD static /opt/static
|
ADD static /opt/static
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user