Phoe2004 commited on
Commit
88d4b05
·
verified ·
1 Parent(s): 0685aad

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -7
Dockerfile CHANGED
@@ -1,9 +1,10 @@
1
  FROM python:3.11-slim
2
 
3
- # System deps: ffmpeg (merge video+audio), curl for deno JS challenge solver
4
  RUN apt-get update && apt-get install -y --no-install-recommends \
5
  ffmpeg \
6
  curl \
 
7
  && curl -fsSL https://deno.land/install.sh | sh \
8
  && rm -rf /var/lib/apt/lists/*
9
 
@@ -12,20 +13,18 @@ ENV PATH="$DENO_INSTALL/bin:$PATH"
12
 
13
  WORKDIR /app
14
 
 
15
  COPY requirements.txt .
16
  RUN pip install --no-cache-dir -r requirements.txt
17
-
18
- # yt-dlp latest + curl-cffi for anti-bot bypass
19
  RUN pip install --no-cache-dir -U "yt-dlp[default,curl-cffi]"
20
 
 
21
  COPY app.py .
22
  COPY index.html .
23
 
24
- # Optional: put your cookies file here for age-restricted/private videos
25
- # COPY m_youtube_com_cookies.txt .
26
-
27
  RUN mkdir -p outputs
28
 
29
  EXPOSE 7860
30
 
31
- CMD ["python", "app.py"]
 
1
  FROM python:3.11-slim
2
 
3
+ # Install system dependencies including unzip for Deno
4
  RUN apt-get update && apt-get install -y --no-install-recommends \
5
  ffmpeg \
6
  curl \
7
+ unzip \
8
  && curl -fsSL https://deno.land/install.sh | sh \
9
  && rm -rf /var/lib/apt/lists/*
10
 
 
13
 
14
  WORKDIR /app
15
 
16
+ # Copy and install Python dependencies
17
  COPY requirements.txt .
18
  RUN pip install --no-cache-dir -r requirements.txt
 
 
19
  RUN pip install --no-cache-dir -U "yt-dlp[default,curl-cffi]"
20
 
21
+ # Copy application files
22
  COPY app.py .
23
  COPY index.html .
24
 
25
+ # Create output directory
 
 
26
  RUN mkdir -p outputs
27
 
28
  EXPOSE 7860
29
 
30
+ CMD ["python", "app.py"]