Pushp0120 commited on
Commit
dd24082
·
verified ·
1 Parent(s): 036abae

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -14
Dockerfile CHANGED
@@ -1,25 +1,28 @@
1
- FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
 
5
  RUN apt-get update && apt-get install -y \
6
  ffmpeg \
7
- fonts-dejavu-core \
 
 
 
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
- RUN pip install \
11
- moviepy==1.0.3 \
12
- Pillow \
13
- numpy \
14
- imageio \
15
- imageio-ffmpeg \
16
- edge-tts \
17
- requests \
18
- google-api-python-client \
19
- google-auth \
20
- google-auth-httplib2 \
21
- yt-dlp
22
 
 
 
 
 
 
 
 
 
23
  COPY . .
24
 
25
  EXPOSE 7860
 
1
+ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
+ # Install system dependencies + ffmpeg + deno
6
  RUN apt-get update && apt-get install -y \
7
  ffmpeg \
8
+ curl \
9
+ unzip \
10
+ && curl -fsSL https://deno.land/install.sh | sh \
11
+ && apt-get clean \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
+ # Add deno to PATH
15
+ ENV DENO_INSTALL="/root/.deno"
16
+ ENV PATH="${DENO_INSTALL}/bin:${PATH}"
 
 
 
 
 
 
 
 
 
17
 
18
+ # Copy requirements and install
19
+ COPY requirements.txt .
20
+ RUN pip install --no-cache-dir -r requirements.txt
21
+
22
+ # Install latest yt-dlp
23
+ RUN pip install --no-cache-dir --upgrade yt-dlp
24
+
25
+ # Copy app files
26
  COPY . .
27
 
28
  EXPOSE 7860