bilibli / Dockerfile
oppaiio's picture
Update Dockerfile
cd28f9c verified
FROM python:3.10-slim
# Cài các công cụ cần thiết
RUN apt-get update && apt-get install -y \
ffmpeg \
curl \
fonts-noto-cjk \
&& apt-get clean
# Cài yt-dlp (bản binary)
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
# Cài thư viện Python
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy toàn bộ mã nguồn
COPY . .
# Chạy app
CMD ["python", "app.py"]