From bcb73ea74a8bd2c0e5d0b1660efbb0a5b31812be Mon Sep 17 00:00:00 2001 From: Kevin Gurney Date: Wed, 8 Mar 2023 14:59:28 -0500 Subject: [PATCH] Add inital Dockerfile which uses nvm to install the latest LTS version of Node.js. --- ci/Dockerfile | 3 +++ ci/website.sh | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 ci/Dockerfile create mode 100755 ci/website.sh diff --git a/ci/Dockerfile b/ci/Dockerfile new file mode 100644 index 000000000000..54f63930fefe --- /dev/null +++ b/ci/Dockerfile @@ -0,0 +1,3 @@ +FROM ubuntu:22.04 +COPY website.sh website.sh +RUN bash website.sh diff --git a/ci/website.sh b/ci/website.sh new file mode 100755 index 000000000000..63cee2404feb --- /dev/null +++ b/ci/website.sh @@ -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