Skip to content

Commit 18ec5ad

Browse files
authored
Merge pull request #59 from udx/dependency-upgrade
fixing multi-architecture build errors
2 parents 5786452 + 0ea2c95 commit 18ec5ad

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

Dockerfile

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,20 +76,34 @@ RUN set -ex && \
7676
tar -xJf "node-v${NODE_VERSION}-linux-${ARCH}.tar.xz" --strip-components=1 -C /usr/local/node && \
7777
ls -la /usr/local/node/bin/
7878

79-
# Step 6: Create symlinks
79+
# Step 6: Create symlinks and set permissions
8080
RUN set -ex && \
8181
echo "Creating symlinks..." && \
82+
chmod +x /usr/local/node/bin/node /usr/local/node/bin/npm /usr/local/node/bin/npx && \
8283
ln -sf /usr/local/node/bin/node /usr/local/bin/node && \
8384
ln -sf /usr/local/node/bin/npm /usr/local/bin/npm && \
8485
ln -sf /usr/local/node/bin/npx /usr/local/bin/npx && \
8586
ls -la /usr/local/bin/node /usr/local/bin/npm /usr/local/bin/npx
8687

87-
# Step 7: Verify installation and cleanup
88+
# Step 7a: Check binary info
8889
RUN set -ex && \
89-
echo "Verifying Node.js installation..." && \
90-
node --version && \
91-
npm --version && \
92-
echo "Cleaning up..." && \
90+
echo "Checking Node.js binary info..." && \
91+
file /usr/local/node/bin/node && \
92+
ldd /usr/local/node/bin/node || echo "ldd not available or static binary"
93+
94+
# Step 7b: Test node binary
95+
RUN set -ex && \
96+
echo "Testing node binary..." && \
97+
/usr/local/node/bin/node --version
98+
99+
# Step 7c: Test npm binary
100+
RUN set -ex && \
101+
echo "Testing npm binary..." && \
102+
/usr/local/node/bin/npm --version
103+
104+
# Step 7d: Cleanup temporary files
105+
RUN set -ex && \
106+
echo "Cleaning up temporary files..." && \
93107
rm -rf /tmp/*
94108

95109
# Remove xz-utils as it's no longer needed

0 commit comments

Comments
 (0)