mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 08:37:43 +01:00
[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:
co-authored by
Tad Hardesty
Gandalf
parent
a420de9418
commit
feb03de76f
@@ -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"
|
||||
Reference in New Issue
Block a user