more updates

This commit is contained in:
Jesse Bannon 2025-09-27 16:01:10 -07:00
parent c766fb5689
commit a39432220f
4 changed files with 7 additions and 8 deletions

View file

@ -54,8 +54,7 @@ RUN mkdir -pv "${DEFAULT_WORKSPACE}" && \
apk del \
g++ \
make \
libffi-dev \
py3-setuptools
libffi-dev
###############################################################################
# CONTAINER CONFIGS

View file

@ -66,7 +66,7 @@ RUN mkdir -p /config && \
curl -fsSL https://deno.land/install.sh | DENO_INSTALL=/usr/local sh -s -- -y --no-modify-path && \
deno --help &&
# Install ytdl-sub, ensure it is installed properly
pip install --no-cache-dir --break-system-packages ytdl_sub-*.whl && \
python3 -m pip install --no-cache-dir --break-system-packages ytdl_sub-*.whl && \
ytdl-sub -h && \
# Delete unneeded packages after install
rm ytdl_sub-*.whl && \

View file

@ -69,7 +69,7 @@ RUN mkdir -pv "${DEFAULT_WORKSPACE}" && \
curl -fsSL https://deno.land/install.sh | DENO_INSTALL=/usr/local sh -s -- -y --no-modify-path && \
deno --help &&
# Install ytdl-sub, ensure it is installed properly
pip install --no-cache-dir --break-system-packages ytdl_sub-*.whl && \
python3 -m pip install --no-cache-dir --break-system-packages ytdl_sub-*.whl && \
ytdl-sub -h && \
# Delete unneeded packages after install
rm ytdl_sub-*.whl && \

View file

@ -28,14 +28,14 @@ echo "" > "$LOGS_TO_STDOUT"
# https://github.com/yt-dlp/yt-dlp/wiki/Installation#with-pip
if [ "$UPDATE_YT_DLP_ON_START" == "stable" ] ; then
echo "UPDATE_YT_DLP_ON_START is set to stable, attempting to update to a new stable version of yt-dlp if it exists."
python3 -m pip install -U "yt-dlp[default]" --break-system-packages
python3 -m pip install -U "yt-dlp[default]" --break-system-packages --root-user-action
elif [ "$UPDATE_YT_DLP_ON_START" == "nightly" ] ; then
echo "UPDATE_YT_DLP_ON_START is set to nightly, attempting to update to the latest nightly version of yt-dlp."
python3 -m pip install -U --pre "yt-dlp[default]"
python3 -m pip install -U --pre "yt-dlp[default]" --root-user-action
elif [ "$UPDATE_YT_DLP_ON_START" == "master" ] ; then
echo "UPDATE_YT_DLP_ON_START is set to master, pulling yt-dlp's latest commit for install."
python3 -m pip install -U pip hatchling wheel
python3 -m pip install --force-reinstall "yt-dlp[default] @ https://github.com/yt-dlp/yt-dlp/archive/master.tar.gz"
python3 -m pip install -U pip hatchling wheel --root-user-action
python3 -m pip install --force-reinstall "yt-dlp[default] @ https://github.com/yt-dlp/yt-dlp/archive/master.tar.gz" --root-user-action
else
echo "UPDATE_YT_DLP_ON_START is not set, using packaged version."
fi