FarelDeveloper commited on
Commit
694acc9
·
verified ·
1 Parent(s): e82707b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -2
Dockerfile CHANGED
@@ -1,11 +1,20 @@
1
  FROM node:18
2
 
3
- RUN apt update && apt install -y python3 ffmpeg
4
- RUN pip install yt-dlp
 
 
 
 
 
 
 
5
 
6
  WORKDIR /app
 
7
  COPY package*.json ./
8
  RUN npm install
 
9
  COPY . .
10
 
11
  EXPOSE 7860
 
1
  FROM node:18
2
 
3
+ # ✅ install python + pip + ffmpeg
4
+ RUN apt update && apt install -y \
5
+ python3 \
6
+ python3-pip \
7
+ ffmpeg \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ # ✅ install yt-dlp via pip
11
+ RUN pip3 install -U yt-dlp
12
 
13
  WORKDIR /app
14
+
15
  COPY package*.json ./
16
  RUN npm install
17
+
18
  COPY . .
19
 
20
  EXPOSE 7860