From 21ddeab21d880695af09734ebd0c34ef08d4b6de Mon Sep 17 00:00:00 2001 From: Constantin Hong Date: Mon, 22 Jan 2024 12:22:26 +0900 Subject: [PATCH] Dockerfile/chore: Reduce layer, update pip and apk, and reduce increased image size by optimization. --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d0d88e00..77e97cd9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM python:alpine -RUN python3 -m pip install -U gallery-dl yt-dlp -RUN apk update -RUN apk add ffmpeg +RUN python3 -m pip install --no-cache-dir -U pip && \ + python3 -m pip install --no-cache-dir -U gallery-dl yt-dlp +RUN apk update && \ + apk add --no-cache ffmpeg && \ + rm -rf /var/cache/apk/* ENTRYPOINT [ "gallery-dl" ]