Refactor: change Python3 virtual environment path

This commit is contained in:
Arkaprabha Chakraborty
2024-08-09 10:19:30 +05:30
parent 95644266c5
commit f13d334382
2 changed files with 7 additions and 7 deletions

View File

@@ -26,14 +26,14 @@ RUN apk add --no-cache \
ffmpeg
# Create a virtual environment for Python
RUN python3 -m venv /venv
RUN python3 -m venv venv
# Activate the virtual environment and install yt-dlp
RUN /venv/bin/pip install --upgrade pip && \
/venv/bin/pip install yt-dlp
RUN ./venv/bin/pip install --upgrade pip && \
./venv/bin/pip install yt-dlp
# Ensure ffmpeg is in the PATH
ENV PATH="/usr/bin:/venv/bin:${PATH}"
ENV PATH="/usr/bin:${PATH}"
# Expose port 8080 to the outside world
EXPOSE 8080