[MIRROR] Fix Docker build failing on a clean checkout (#2732)

* Fix Docker build failing on a clean checkout

* Update Dockerfile

* Update Dockerfile

* Update node

* Update Dockerfile

* Update node

* Update run_server.sh

* Update deploy.sh

Co-authored-by: Tad Hardesty <tad@platymuus.com>
Co-authored-by: Gandalf <jzo123@hotmail.com>
This commit is contained in:
SkyratBot
2021-01-18 18:52:23 +00:00
committed by GitHub
co-authored by Tad Hardesty Gandalf
parent a420de9418
commit feb03de76f
5 changed files with 9 additions and 9 deletions
+2 -1
View File
@@ -32,6 +32,7 @@ if [ "$(uname)" = "Linux" ] || [ ! -f "$NodeExe" ]; then
NodeExe="$NodeDir/node"
if [ ! -f "$NodeExe" ]; then
mkdir -p "$Cache"
Archive="$(realpath "$Cache/node-v$NodeVersion.tar.gz")"
curl "https://nodejs.org/download/release/v$NodeVersion/$NodeFullVersion.tar.gz" -o "$Archive"
(cd "$Cache" && tar xf "$Archive")
@@ -80,4 +81,4 @@ exec 4>&1
PATH="$(readlink -f "$NodeDir"):$PATH" # Set PATH so that recursive calls find it
exitstatus=$({ { set +e; "$NodeExe" "$@" 2>&1 3>&-; printf %s $? >&3; } 4>&- | tee -a "$Log" 1>&4; } 3>&1)
exec 4>&-
exit "$exitstatus"
exit "$exitstatus"