mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-07-05 05:13:59 +03:00
Refactor Dockerfile to use alpine base image and streamline dependencies; update workflows to handle artifact downloads and extraction
This commit is contained in:
+4
-11
@@ -1,17 +1,10 @@
|
||||
FROM python:3.12-slim
|
||||
FROM python:3.12-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install runtime dependencies: aria2, ffmpeg, yt-dlp
|
||||
# Use --no-install-recommends to keep image small and clean up apt lists
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
aria2 \
|
||||
ffmpeg \
|
||||
yt-dlp \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY yt-playlist-main.py /app/
|
||||
COPY ./bin/ffmpeg /app/bin
|
||||
COPY ./bin/yt-dlp /app/bin
|
||||
COPY ./bin/aria2c /app/bin
|
||||
|
||||
CMD ["python", "yt-playlist-main.py"]
|
||||
|
||||
Reference in New Issue
Block a user