Skip to content

Commit

Permalink
chore: added install npm script
Browse files Browse the repository at this point in the history
  • Loading branch information
blt950 committed Nov 30, 2024
1 parent 9f1c143 commit c930bc3
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 c930bc3

Please sign in to comment.