Skip to content

update Dockerfile to add deno #55

Description

@otecmichal

for yt-dlp to fully support youtube, you need to add deno into the container (and possibly yt-dlp-ejs into requirements.txt)

here's a Dockerfile that works nicely:

# Stage 1: Get the Deno binary
FROM denoland/deno:bin AS deno-bin

# Stage 2: Final runtime image
FROM python:3.12-slim

# Copy the Deno binary from Stage 1
COPY --from=deno-bin /deno /usr/local/bin/deno

# Install ffmpeg
RUN apt-get update && \
    apt-get install -y --no-install-recommends ffmpeg && \
    rm -rf /var/lib/apt/lists/*

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Verify that Deno and yt-dlp-ejs are correctly installed and functional
RUN deno --version && python -c "import yt_dlp_ejs" && yt-dlp --version

COPY . .

EXPOSE 8899
ENV HOST=0.0.0.0
CMD ["python", "app.py"]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions