FROM node:18-slim # Cài ffmpeg và curl (đủ để dùng yt-dlp) RUN apt-get update && apt-get install -y ffmpeg curl && rm -rf /var/lib/apt/lists/* # Cài yt-dlp từ GitHub release RUN 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 # Tạo thư mục làm việc WORKDIR /app COPY package.json . RUN npm install COPY . . EXPOSE 7860 CMD ["node", "index.js"]