perf: combine apk commands in Dockerfile

This commit is contained in:
Khoa Vo 2026-05-14 12:27:27 +07:00
parent 7a798bf8f5
commit 7af385f65d

View file

@ -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