Skip to content

Commit

Permalink
Simplify package installs
Browse files Browse the repository at this point in the history
  • Loading branch information
chilled-capybara committed Oct 24, 2023
1 parent d99a355 commit b37d17f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions image/nodejs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ set -x

echo "+ Enabling Node Source APT repo"
NODE_MAJOR=18
sudo apt-get update
sudo apt-get install -y ca-certificates curl gnupg
mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${NODE_MAJOR}.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
sudo apt-get update
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${NODE_MAJOR}.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
apt-get update

## Install Node.js (also needed for Rails asset compilation)
minimal_apt_get_install nodejs
Expand Down

0 comments on commit b37d17f

Please sign in to comment.