Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ FROM oven/bun

# Install yt-dlp dependencies
RUN apt-get update && \
apt-get install -y python3 ffmpeg curl && \
apt-get install -y python3 python3-pip ffmpeg curl && \
# no venv: yt-dlp runs on the system python, so its deps must live there
pip install --no-cache-dir --break-system-packages curl-cffi && \
# Install yt-dlp in its own world-writable dir so it can self-update at
# runtime (the container runs as a non-root user)
mkdir /opt/yt-dlp && \
curl -L https://github.com/yt-dlp/yt-dlp-nightly-builds/releases/latest/download/yt-dlp -o /opt/yt-dlp/yt-dlp && \
chmod -R 777 /opt/yt-dlp && \
# Clean up unnecessary files
apt-get remove -y curl && \
apt-get remove -y curl python3-pip && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

Expand Down
6 changes: 4 additions & 2 deletions Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ FROM oven/bun:slim

# Install yt-dlp dependencies
RUN apt-get update && \
apt-get install -y python3 ffmpeg curl && \
apt-get install -y python3 python3-pip ffmpeg curl && \
# no venv: yt-dlp runs on the system python, so its deps must live there
pip install --no-cache-dir --break-system-packages curl-cffi && \
# Install yt-dlp in its own world-writable dir so it can self-update at
# runtime (the container runs as a non-root user)
mkdir /opt/yt-dlp && \
curl -L https://github.com/yt-dlp/yt-dlp-nightly-builds/releases/latest/download/yt-dlp -o /opt/yt-dlp/yt-dlp && \
chmod -R 777 /opt/yt-dlp && \
# Clean up unnecessary files
apt-get remove -y curl && \
apt-get remove -y curl python3-pip && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

Expand Down
Loading