Chore dockerfile refactor (#287)
* removed yt-dlp alpine package * use python3-alpine base image
This commit is contained in:
@@ -25,14 +25,11 @@ RUN CGO_ENABLED=0 GOOS=linux go build -o yt-dlp-webui
|
|||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
|
||||||
# Runtime ---------------------------------------------------------------------
|
# Runtime ---------------------------------------------------------------------
|
||||||
FROM alpine
|
FROM python:3.13.2-alpine3.21
|
||||||
|
|
||||||
RUN apk update && \
|
RUN apk update && \
|
||||||
apk add ffmpeg ca-certificates curl wget gnutls && \
|
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/') && \
|
pip install "yt-dlp[default,curl-cffi,mutagen,pycryptodomex,phantomjs,secretstorage]"
|
||||||
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
|
|
||||||
|
|
||||||
VOLUME /downloads /config
|
VOLUME /downloads /config
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user