Spaces:
Running
Running
Update Dockerfile
Browse files- 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|