Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add inital Dockerfile which uses nvm to install the latest LTS versio…
…n of Node.js.
- Loading branch information
1 parent
41a0080
commit bcb73ea
Showing
2 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM ubuntu:22.04 | ||
COPY website.sh website.sh | ||
RUN bash website.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
NVM_VERSION="v0.39.3" | ||
apt-get update && apt-get install --yes git curl | ||
git clone https://github.com/nvm-sh/nvm.git | ||
cd nvm && git checkout ${NVM_VERSION} && ./install.sh | ||
source ~/.nvm/nvm.sh | ||
nvm install --lts && nvm use --lts |