mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Node version was updated to 20.4.0 (Cur Version) (#378)
This commit is contained in:
@@ -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
|
||||
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user