mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-29 03:33:19 -04:00
22 lines
861 B
Plaintext
Executable File
22 lines
861 B
Plaintext
Executable File
#!/usr/bin/with-contenv bash
|
|
|
|
echo "**** installing nodejs dev environment ****"
|
|
if ! dpkg -l | grep gnupg > /dev/null; then
|
|
apt-get update && apt-get install -y --no-install-recommends gnupg
|
|
fi
|
|
|
|
source /etc/lsb-release
|
|
[[ ! -f "/etc/apt/sources.list.d/nodesource.list" ]] && \
|
|
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
|
|
echo "deb https://deb.nodesource.com/node_14.x ${DISTRIB_CODENAME} main" \
|
|
> /etc/apt/sources.list.d/nodesource.list
|
|
[[ ! -f "/etc/apt/sources.list.d/yarn.list" ]] && \
|
|
curl -s https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
|
|
echo 'deb https://dl.yarnpkg.com/debian/ stable main' \
|
|
> /etc/apt/sources.list.d/yarn.list
|
|
|
|
echo "**** Adding nodejs and yarn to package install list ****"
|
|
echo "\
|
|
nodejs \
|
|
yarn" >> /mod-repo-packages-to-install.list
|