Docker: Add Ubuntu 23.04 (Lunar Lobster) base images #3305

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2023-03-27 09:30:17 +02:00
parent b3525d6e49
commit ba85e5df17
22 changed files with 411 additions and 36 deletions

View File

@@ -13,13 +13,20 @@ fi
set -e
SETUP_URL="https://deb.nodesource.com/setup_18.x"
. /etc/os-release
echo "Fetching packages from \"$SETUP_URL\"..."
wget --inet4-only -c -qO- $SETUP_URL | bash -
if [[ $VERSION_CODENAME == "lunar" ]]; then
echo "Installing NodeJS and NPM distribution packages..."
apt-get update && apt-get -qq install nodejs npm
else
SETUP_URL="https://deb.nodesource.com/setup_18.x"
echo "Installing NodeJS, NPM, and TestCafe..."
apt-get update && apt-get -qq install nodejs
echo "Fetching packages from \"$SETUP_URL\"..."
wget --inet4-only -c -qO- $SETUP_URL | bash -
echo "Installing NodeJS, NPM, and TestCafe..."
apt-get update && apt-get -qq install nodejs
fi
npm install --unsafe-perm=true --allow-root -g npm testcafe
npm config set cache ~/.cache/npm