akborana4 commited on
Commit
c19b173
·
verified ·
1 Parent(s): 7628f39

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -5
Dockerfile CHANGED
@@ -12,11 +12,10 @@ RUN npm run build
12
  FROM node:18-alpine AS server
13
  WORKDIR /app/server
14
 
15
- # Add Python, pip, ffmpeg, and yt-dlp for YouTube resolving
16
- RUN apk add --no-cache python3 py3-pip ffmpeg && \
17
- pip install --no-cache-dir yt-dlp
18
 
19
- # Install server deps
20
  COPY server/package.json ./
21
  RUN npm install
22
  COPY server/ ./
@@ -32,5 +31,7 @@ ENV PORT=3000
32
  # e.g. YT_COOKIES=/data/cookies.txt
33
  # ENV YT_COOKIES=""
34
 
 
 
 
35
  EXPOSE 3000
36
- CMD ["npm", "start"]
 
12
  FROM node:18-alpine AS server
13
  WORKDIR /app/server
14
 
15
+ # Install Python, ffmpeg, and yt-dlp from Alpine packages
16
+ RUN apk add --no-cache python3 py3-pip ffmpeg py3-yt-dlp
 
17
 
18
+ # Install server dependencies
19
  COPY server/package.json ./
20
  RUN npm install
21
  COPY server/ ./
 
31
  # e.g. YT_COOKIES=/data/cookies.txt
32
  # ENV YT_COOKIES=""
33
 
34
+ # Show yt-dlp version at container start for debugging
35
+ CMD echo "yt-dlp version:" && yt-dlp --version && npm start
36
+
37
  EXPOSE 3000