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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -9
Dockerfile CHANGED
@@ -1,10 +1,8 @@
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,18 +11,22 @@ ENV PATH="$DENO_INSTALL/bin:$PATH"
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"]
 
1
  FROM python:3.11-slim
2
 
3
+ # Install system dependencies
4
  RUN apt-get update && apt-get install -y --no-install-recommends \
5
+ ffmpeg git curl unzip \
 
 
6
  && curl -fsSL https://deno.land/install.sh | sh \
7
  && rm -rf /var/lib/apt/lists/*
8
 
 
11
 
12
  WORKDIR /app
13
 
14
+ # Install Python packages
15
  COPY requirements.txt .
16
  RUN pip install --no-cache-dir -r requirements.txt
17
+
18
+ # Install yt-dlp
19
  RUN pip install --no-cache-dir -U "yt-dlp[default,curl-cffi]"
20
 
21
  # Copy application files
22
  COPY app.py .
23
+ COPY yt_to_tiktok.py .
24
+ COPY cookies.txt .
25
+ COPY m_youtube_com_cookies.txt .
26
+ COPY start.sh .
27
 
28
+ RUN chmod +x start.sh
 
29
 
30
  EXPOSE 7860
31
 
32
+ CMD ["./start.sh"]