Upgraded nodejs dependencies to 16.x (#364)

This commit is contained in:
Ravin Perera
2022-03-08 21:12:26 +05:30
committed by GitHub
parent 86895426a1
commit 050b6f5bd5
8 changed files with 206 additions and 17 deletions

View File

@@ -22,11 +22,11 @@ rm -r $tmp/*
# NodeJs image
# Download and place the nodejs binary in the build context.
curl -fsSL -o $tmp/nodejs.tar.xz https://nodejs.org/dist/v14.17.3/node-v14.17.3-linux-x64.tar.xz
tar -xvJf $tmp/nodejs.tar.xz --strip-components=2 -C $tmp/ node-v14.17.3-linux-x64/bin/node
curl -fsSL -o $tmp/nodejs.tar.xz https://nodejs.org/dist/v16.14.0/node-v16.14.0-linux-x64.tar.xz
tar -xvJf $tmp/nodejs.tar.xz --strip-components=2 -C $tmp/ node-v16.14.0-linux-x64/bin/node
rm $tmp/nodejs.tar.xz
cp ./$njsfile $tmp/
sed -i "s/%ver%/$imgversion/g" $tmp/$njsfile
docker build -t $img:$imgversion-ubt.20.04-njs.14 -f $tmp/$njsfile $tmp
docker build -t $img:$imgversion-ubt.20.04-njs.16 -f $tmp/$njsfile $tmp
rm -r $tmp