mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-19 00:21:30 +03:00
Reverted #696 and updated node version to avoid 243 error
This commit is contained in:
@@ -6,7 +6,7 @@ COPY ffmpeg-fetch.sh .
|
|||||||
RUN sh ./ffmpeg-fetch.sh
|
RUN sh ./ffmpeg-fetch.sh
|
||||||
|
|
||||||
|
|
||||||
# Create our Ubuntu 22.04 with node 16
|
# Create our Ubuntu 22.04 with node 16.14.2 (that specific version is required as per: https://stackoverflow.com/a/72855258/8088021)
|
||||||
# Go to 20.04
|
# Go to 20.04
|
||||||
FROM ubuntu:20.04 AS base
|
FROM ubuntu:20.04 AS base
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
@@ -21,7 +21,8 @@ RUN groupadd -g $GID $USER && useradd --system -m -g $USER --uid $UID $USER && \
|
|||||||
apt install -y --no-install-recommends curl ca-certificates tzdata && \
|
apt install -y --no-install-recommends curl ca-certificates tzdata && \
|
||||||
curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && \
|
curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && \
|
||||||
apt install -y --no-install-recommends nodejs && \
|
apt install -y --no-install-recommends nodejs && \
|
||||||
npm -g install npm && \
|
npm -g install npm n && \
|
||||||
|
n 16.14.2 && \
|
||||||
apt clean && \
|
apt clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|||||||
@@ -11,8 +11,6 @@ fi
|
|||||||
# chown current working directory to current user
|
# chown current working directory to current user
|
||||||
if [ "$*" = "$CMD" ] && [ "$(id -u)" = "0" ]; then
|
if [ "$*" = "$CMD" ] && [ "$(id -u)" = "0" ]; then
|
||||||
find . \! -user "$UID" -exec chown "$UID:$GID" -R '{}' + || echo "WARNING! Could not change directory ownership. If you manage permissions externally this is fine, otherwise you may experience issues when downloading or deleting videos."
|
find . \! -user "$UID" -exec chown "$UID:$GID" -R '{}' + || echo "WARNING! Could not change directory ownership. If you manage permissions externally this is fine, otherwise you may experience issues when downloading or deleting videos."
|
||||||
usermod -u "$UID" "$USER"
|
|
||||||
groupmod -g "$GID" "$USER"
|
|
||||||
exec gosu "$UID:$GID" "$0" "$@"
|
exec gosu "$UID:$GID" "$0" "$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user