Skip to content

Commit 381d93e

Browse files
authored
Merge pull request #69 from udx/worker-upgrade
Upgrade to Nodejs@v24.13.1
2 parents 827ab73 + a848eb6 commit 381d93e

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

Dockerfile

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Use the latest udx-worker as the base image
2-
FROM usabilitydynamics/udx-worker:0.37.0
2+
FROM usabilitydynamics/udx-worker:0.38.0
33

44
# Add metadata labels
5-
LABEL version="0.29.0"
5+
LABEL version="0.30.0"
66

77
# Set build arguments for Node.js version and application port
8-
ARG NODE_VERSION=22.21.1
8+
ARG NODE_VERSION=24.13.1
99
ARG APP_PORT=8080
1010

1111
# Add Node.js to PATH
@@ -44,19 +44,7 @@ RUN set -ex && \
4444
# Extract and install
4545
mkdir -p /usr/local/node && \
4646
tar -xJf "node-v${NODE_VERSION}-linux-${ARCH}.tar.xz" --strip-components=1 -C /usr/local/node && \
47-
# Rewrite shebangs to avoid /usr/bin/env (BuildKit/QEMU arm64-safe)
48-
sed -i '1 s|^#!.*|#!/usr/local/node/bin/node|' /usr/local/node/lib/node_modules/npm/bin/npm-cli.js && \
49-
sed -i '1 s|^#!.*|#!/usr/local/node/bin/node|' /usr/local/node/lib/node_modules/npm/bin/npx-cli.js && \
50-
sed -i '1 s|^#!.*|#!/usr/local/node/bin/node|' /usr/local/node/bin/npm && \
51-
sed -i '1 s|^#!.*|#!/usr/local/node/bin/node|' /usr/local/node/bin/npx && \
5247
ln -sf /usr/local/node/bin/node /usr/local/bin/node && \
53-
# Provide npm/npx launchers in /usr/local/bin (preferred via PATH)
54-
printf '%s\n' '#!/bin/sh' \
55-
'exec /usr/local/node/bin/node /usr/local/node/lib/node_modules/npm/bin/npm-cli.js "$@"' \
56-
> /usr/local/bin/npm && chmod +x /usr/local/bin/npm && \
57-
printf '%s\n' '#!/bin/sh' \
58-
'exec /usr/local/node/bin/node /usr/local/node/lib/node_modules/npm/bin/npx-cli.js "$@"' \
59-
> /usr/local/bin/npx && chmod +x /usr/local/bin/npx && \
6048
# Verify installation and resolution path
6149
node --version && \
6250
command -v npm && head -n 1 "$(command -v npm)" && npm --version && \

src/tests/10_validate_environment.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
# Required Node.js version
4-
REQUIRED_NODE_VERSION="22"
4+
REQUIRED_NODE_VERSION="24"
55

66
# Check if Node.js is installed
77
if ! command -v node >/dev/null 2>&1; then

0 commit comments

Comments
 (0)