Node version was updated to 20.4.0 (Cur Version) (#378)

This commit is contained in:
Chalith Desaman
2023-07-21 16:17:17 +05:30
committed by GitHub
parent 29c8201974
commit 0022bd51e5
2 changed files with 4 additions and 4 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/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
curl -fsSL -o $tmp/nodejs.tar.xz https://nodejs.org/dist/v20.4.0/node-v20.4.0-linux-x64.tar.xz
tar -xvJf $tmp/nodejs.tar.xz --strip-components=2 -C $tmp/ node-v20.4.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.16" -t "$img:latest-ubt.20.04-njs.16" -f $tmp/$njsfile $tmp
docker build -t "$img:$imgversion-ubt.20.04-njs.20" -t "$img:latest-ubt.20.04-njs.20" -f $tmp/$njsfile $tmp
rm -r $tmp

View File

@@ -1,5 +1,5 @@
# We are going with HotPocket NodeJs docker image because sample contracts need NodeJs to run.
FROM evernodedev/hotpocket:latest-ubt.20.04-njs.16
FROM evernodedev/hotpocket:latest-ubt.20.04-njs.20
# Copy (overwrite) the local build outputs into the docker image.
COPY hpcore hpfs hpws /usr/local/bin/hotpocket/