File size: 613 Bytes
dd24082
c3ab029
 
 
dd24082
2fec8e6
 
dd24082
 
 
 
2fec8e6
 
dd24082
 
 
c3ab029
dd24082
 
 
 
 
 
 
 
c3ab029
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM python:3.10-slim

WORKDIR /app

# Install system dependencies + ffmpeg + deno
RUN apt-get update && apt-get install -y \
    ffmpeg \
    curl \
    unzip \
    && curl -fsSL https://deno.land/install.sh | sh \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

# Add deno to PATH
ENV DENO_INSTALL="/root/.deno"
ENV PATH="${DENO_INSTALL}/bin:${PATH}"

# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Install latest yt-dlp
RUN pip install --no-cache-dir --upgrade yt-dlp

# Copy app files
COPY . .

EXPOSE 7860

CMD ["python", "server.py"]