From 50f79af3258d9536b597b7be068f54f69c05d781 Mon Sep 17 00:00:00 2001 From: Khoa Vo Date: Thu, 14 May 2026 12:27:27 +0700 Subject: [PATCH] perf: combine apk commands in Dockerfile --- Dockerfile | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index f468fb1..e804d30 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,15 +29,8 @@ RUN echo "NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL" && npm run build # ---- Final Unified Image ---- FROM alpine:latest -# Install dependencies for Go backend, Node.js frontend, and Supervisord -RUN apk add --no-cache nodejs -RUN apk add --no-cache ca-certificates -RUN apk add --no-cache ffmpeg -RUN apk add --no-cache curl -RUN apk add --no-cache python3 -RUN apk add --no-cache py3-pip -RUN apk add --no-cache supervisor -RUN curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp \ +RUN apk add --no-cache nodejs ca-certificates ffmpeg curl python3 py3-pip supervisor \ + && curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp \ && chmod a+rx /usr/local/bin/yt-dlp WORKDIR /app