Spaces:
5h4rxz
/
Running

5h4rxz commited on
Commit
2c345b8
·
verified ·
1 Parent(s): a5ca021

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -3
Dockerfile CHANGED
@@ -5,10 +5,15 @@ USER root
5
 
6
  # Install system dependencies including Python
7
  RUN apk add --no-cache \
8
- git python3 py3-pip make g++ build-base \
9
  cairo-dev pango-dev chromium postgresql-client \
10
- ffmpeg openssl busybox-extras curl bash unzip gdal \
11
- && pip3 install --no-cache-dir yt-dlp
 
 
 
 
 
12
 
13
  # Create symlink for python (sometimes needed)
14
  RUN ln -sf /usr/bin/python3 /usr/bin/python
 
5
 
6
  # Install system dependencies including Python
7
  RUN apk add --no-cache \
8
+ git python3 py3-pip py3-virtualenv make g++ build-base \
9
  cairo-dev pango-dev chromium postgresql-client \
10
+ ffmpeg openssl busybox-extras curl bash unzip gdal
11
+
12
+ # Create a virtual environment and install yt-dlp there
13
+ RUN python3 -m venv /opt/venv \
14
+ && . /opt/venv/bin/activate \
15
+ && pip install --no-cache-dir yt-dlp \
16
+ && ln -sf /opt/venv/bin/yt-dlp /usr/local/bin/yt-dlp
17
 
18
  # Create symlink for python (sometimes needed)
19
  RUN ln -sf /usr/bin/python3 /usr/bin/python