Phoe2004 commited on
Commit
0f77daf
·
verified ·
1 Parent(s): dd329d2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -6
Dockerfile CHANGED
@@ -1,21 +1,31 @@
1
  FROM python:3.11-slim
2
 
 
3
  RUN apt-get update && apt-get install -y --no-install-recommends \
4
  ffmpeg \
5
- && curl -fsSL https://deno.land/install.sh | sh \
 
 
6
  && rm -rf /var/lib/apt/lists/*
7
 
8
- ENV DENO_INSTALL="/root/.deno"
9
- ENV PATH="$DENO_INSTALL/bin:$PATH"
10
-
11
  WORKDIR /app
12
 
 
13
  COPY requirements.txt .
14
  RUN pip install --no-cache-dir -r requirements.txt
15
- RUN pip install --no-cache-dir -U yt-dlp
16
 
 
 
 
 
 
 
 
17
  COPY app.py .
18
- COPY cookies.txt .
 
 
 
19
 
20
  EXPOSE 7860
21
 
 
1
  FROM python:3.11-slim
2
 
3
+ # Install system dependencies (ffmpeg for video processing)
4
  RUN apt-get update && apt-get install -y --no-install-recommends \
5
  ffmpeg \
6
+ git \
7
+ curl \
8
+ unzip \
9
  && rm -rf /var/lib/apt/lists/*
10
 
 
 
 
11
  WORKDIR /app
12
 
13
+ # Install Python dependencies
14
  COPY requirements.txt .
15
  RUN pip install --no-cache-dir -r requirements.txt
 
16
 
17
+ # Install yt-dlp with all extras
18
+ RUN pip install --no-cache-dir -U "yt-dlp[default,curl-cffi]"
19
+
20
+ # Create necessary directories
21
+ RUN mkdir -p outputs downloads logs video_history temp_ temp_prev temp_thumb
22
+
23
+ # Copy application files
24
  COPY app.py .
25
+ COPY index.html .
26
+ COPY manifest.json .
27
+ COPY sw.js .
28
+ COPY m_youtube_com_cookies.txt . 2>/dev/null || true
29
 
30
  EXPOSE 7860
31