Update Dockerfile
Browse files- Dockerfile +11 -9
Dockerfile
CHANGED
|
@@ -1,10 +1,8 @@
|
|
| 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 \
|
| 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 |
-
#
|
| 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
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
-
|
| 26 |
-
RUN mkdir -p outputs
|
| 27 |
|
| 28 |
EXPOSE 7860
|
| 29 |
|
| 30 |
-
CMD ["
|
|
|
|
| 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"]
|