Skip to content

Commit 0650b15

Browse files
committed
Add nodejs to docker container
1 parent 0ce4fbc commit 0650b15

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,14 @@ RUN apk add --no-cache \
1919
git \
2020
curl \
2121
bash \
22+
tar \
2223
su-exec
2324

25+
ENV NODE_VERSION=20.14.0
26+
27+
RUN curl -fsSL https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz \
28+
| tar -xJf - -C /usr/local --strip-components=1 --no-same-owner
29+
2430
# Install and Configure Retype
2531
RUN dotnet tool install retypeapp --tool-path /bin
2632
ENV RETYPE_DEFAULT_HOST="0.0.0.0"

server/buildserver.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,8 @@ func updateBranch(cloneURL, branch string, silent bool) {
7878
logMessage("Stdout: %s", out.String())
7979
logMessage("Stderr: %s", stderr.String())
8080

81-
finalLog := out.String()
82-
83-
// Send failure notification to Discord
84-
if stderr.String() != "" {
85-
finalLog = stderr.String()
86-
}
87-
8881
if !silent {
89-
sendDiscordMessage(branch, "A build has failed for `"+branch+"`", "Build Failed", red, finalLog)
82+
sendDiscordMessage(branch, "A build has failed for `"+branch+"`", "Build Failed", red, err.Error())
9083
}
9184
return
9285
}

0 commit comments

Comments
 (0)