oppaiio commited on
Commit
cd28f9c
·
verified ·
1 Parent(s): 4afe73e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -1,24 +1,24 @@
1
  FROM python:3.10-slim
2
 
3
- # Cài công cụ cần thiết
4
  RUN apt-get update && apt-get install -y \
5
  ffmpeg \
6
  curl \
7
  fonts-noto-cjk \
8
  && apt-get clean
9
 
10
- # Cài yt-dlp
11
  RUN curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp \
12
  -o /usr/local/bin/yt-dlp && chmod a+rx /usr/local/bin/yt-dlp
13
 
14
  # Tạo thư mục làm việc
15
  WORKDIR /app
16
 
17
- # Copy và cài thư viện Python
18
  COPY requirements.txt .
19
  RUN pip install --no-cache-dir -r requirements.txt
20
 
21
- # Copy source code
22
  COPY . .
23
 
24
  # Chạy app
 
1
  FROM python:3.10-slim
2
 
3
+ # Cài các công cụ cần thiết
4
  RUN apt-get update && apt-get install -y \
5
  ffmpeg \
6
  curl \
7
  fonts-noto-cjk \
8
  && apt-get clean
9
 
10
+ # Cài yt-dlp (bản binary)
11
  RUN curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp \
12
  -o /usr/local/bin/yt-dlp && chmod a+rx /usr/local/bin/yt-dlp
13
 
14
  # Tạo thư mục làm việc
15
  WORKDIR /app
16
 
17
+ # Cài thư viện Python
18
  COPY requirements.txt .
19
  RUN pip install --no-cache-dir -r requirements.txt
20
 
21
+ # Copy toàn bộ mã nguồn
22
  COPY . .
23
 
24
  # Chạy app