Skip to content

Commit 22e4258

Browse files
committed
fixing multi-architecture build errors
1 parent b36bfba commit 22e4258

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ RUN set -ex && \
5050
ARCH=$(cat /tmp/node_arch.txt) && \
5151
echo "Downloading Node.js v${NODE_VERSION} for ${ARCH}..." && \
5252
curl -fsSLO "https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-${ARCH}.tar.xz" && \
53-
ls -lh node-v${NODE_VERSION}-linux-${ARCH}.tar.xz
53+
ls -lh "node-v${NODE_VERSION}-linux-${ARCH}.tar.xz"
5454

5555
# Step 3: Download checksum file
5656
RUN set -ex && \
@@ -63,7 +63,7 @@ RUN set -ex && \
6363
RUN set -ex && \
6464
ARCH=$(cat /tmp/node_arch.txt) && \
6565
echo "Verifying checksum for node-v${NODE_VERSION}-linux-${ARCH}.tar.xz..." && \
66-
cat SHASUMS256.txt | grep "node-v${NODE_VERSION}-linux-${ARCH}.tar.xz" | head -n1 > checksum.txt && \
66+
grep "node-v${NODE_VERSION}-linux-${ARCH}.tar.xz" SHASUMS256.txt | head -n1 > checksum.txt && \
6767
echo "Checksum line:" && \
6868
cat checksum.txt && \
6969
sha256sum -c checksum.txt
@@ -82,7 +82,7 @@ RUN set -ex && \
8282
ln -sf /usr/local/node/bin/node /usr/local/bin/node && \
8383
ln -sf /usr/local/node/bin/npm /usr/local/bin/npm && \
8484
ln -sf /usr/local/node/bin/npx /usr/local/bin/npx && \
85-
ls -la /usr/local/bin/ | grep -E "node|npm|npx"
85+
ls -la /usr/local/bin/node /usr/local/bin/npm /usr/local/bin/npx
8686

8787
# Step 7: Verify installation and cleanup
8888
RUN set -ex && \

0 commit comments

Comments
 (0)