Twan07 commited on
Commit
bc754dd
·
verified ·
1 Parent(s): ecde121

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -7
Dockerfile CHANGED
@@ -1,15 +1,15 @@
1
  FROM node:18-slim
2
 
3
- # Cài công cụ hệ thống cần thiết
4
  RUN apt-get update && apt-get install -y \
5
- ffmpeg \
6
- python3 \
7
  python3-pip \
 
8
  curl \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
- # Cài yt-dlp
12
- RUN pip install yt-dlp
13
 
14
  # Tạo thư mục làm việc
15
  WORKDIR /app
@@ -18,11 +18,11 @@ WORKDIR /app
18
  COPY package.json .
19
  RUN npm install
20
 
21
- # Copy code app
22
  COPY . .
23
 
24
  # Expose port
25
  EXPOSE 7860
26
 
27
- # Start app
28
  CMD ["node", "index.js"]
 
1
  FROM node:18-slim
2
 
3
+ # Cài công cụ hệ thống cần thiết: python3-full + pip + ffmpeg
4
  RUN apt-get update && apt-get install -y \
5
+ python3-full \
 
6
  python3-pip \
7
+ ffmpeg \
8
  curl \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
+ # Cài yt-dlp thông qua pip
12
+ RUN pip install --no-cache-dir yt-dlp
13
 
14
  # Tạo thư mục làm việc
15
  WORKDIR /app
 
18
  COPY package.json .
19
  RUN npm install
20
 
21
+ # Copy source code
22
  COPY . .
23
 
24
  # Expose port
25
  EXPOSE 7860
26
 
27
+ # Run server
28
  CMD ["node", "index.js"]