Skip to content

Commit

Permalink
feat: added npm install script
Browse files Browse the repository at this point in the history
Useful for dev environments for quick install
  • Loading branch information
blt950 committed Aug 1, 2024
1 parent 6f8a085 commit dd43457
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions container/install-npm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

echo "Starting theme building process..."

# Install
apt update
apt install -y ca-certificates curl gnupg
mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg

NODE_MAJOR=22
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 update
apt install nodejs -y

# Build config
npm config set cache /tmp --global

echo "Done!"

0 comments on commit dd43457

Please sign in to comment.