From 2af27e51beb4ecfbfacc349e09219abca08fcbbd Mon Sep 17 00:00:00 2001 From: Marco Piovanello <35533749+marcopiovanello@users.noreply.github.com> Date: Sat, 22 Mar 2025 16:17:25 +0100 Subject: [PATCH] Chore dockerfile refactor (#287) * removed yt-dlp alpine package * use python3-alpine base image --- Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 52b44b5..20ea720 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,14 +25,11 @@ RUN CGO_ENABLED=0 GOOS=linux go build -o yt-dlp-webui # ----------------------------------------------------------------------------- # Runtime --------------------------------------------------------------------- -FROM alpine +FROM python:3.13.2-alpine3.21 RUN apk update && \ apk add ffmpeg ca-certificates curl wget gnutls && \ -RELEASE=$(curl --silent "https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') && \ -if [ $(apk --print-arch) == "aarch64" ]; then curl -L -o yt-dlp "https://github.com/yt-dlp/yt-dlp/releases/download/$RELEASE/yt-dlp_linux_aarch64"; else curl -L -o yt-dlp "https://github.com/yt-dlp/yt-dlp/releases/download/$RELEASE/yt-dlp_linux"; fi; && \ -chmod +x ./yt-dlp && \ -mv ./yt-dlp /usr/bin/yt-dlp +pip install "yt-dlp[default,curl-cffi,mutagen,pycryptodomex,phantomjs,secretstorage]" VOLUME /downloads /config