File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed
Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change 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
88ARG NODE_VERSION=22.21.1
@@ -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 && \
You can’t perform that action at this time.
0 commit comments