Skip to content

Commit 251b64a

Browse files
committed
wip - moving to dual output for x64 and arm64 - debug
1 parent 7223989 commit 251b64a

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

Dockerfile

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,20 @@ COPY package.json package-lock.json webpack.config.js ./
2323
RUN npm --no-optional --no-audit --progress=false --arch=${TARGET_ARCH} --platform=${TARGET_PLATFORM} install
2424

2525
# --- START TEMPORARY DEBUG STEP ---
26-
# Check if the specific .node file exists after install
27-
RUN echo ">>> Checking for .node file presence for ${TARGET_PLATFORM}-${TARGET_ARCH}..." && \
26+
# Combine the whole check into a single shell command executed by RUN
27+
RUN set -e && \
28+
echo ">>> Checking for .node file presence for ${TARGET_PLATFORM}-${TARGET_ARCH}..." && \
2829
NODE_FILE_PATH="/build/node_modules/sharp/build/Release/sharp-${TARGET_PLATFORM}-${TARGET_ARCH}.node" && \
2930
if [ -f "$NODE_FILE_PATH" ]; then \
30-
echo ">>> SUCCESS: Found file:"; \
31+
echo ">>> SUCCESS: Found file:" && \
3132
ls -l "$NODE_FILE_PATH"; \
3233
else \
33-
echo ">>> FAILURE: File NOT found at $NODE_FILE_PATH!"; \
34-
echo ">>> Listing /build/node_modules/sharp/build/Release contents:"; \
35-
ls -l /build/node_modules/sharp/build/Release/; \
36-
echo ">>> Listing /build/node_modules/sharp/vendor contents (if exists):"; \
37-
ls -lR /build/node_modules/sharp/vendor/; \
38-
exit 1; \ # Optionally fail fast if file not found
34+
echo ">>> FAILURE: File NOT found at $NODE_FILE_PATH!" && \
35+
echo ">>> Listing /build/node_modules/sharp/build/Release contents:" && \
36+
ls -l /build/node_modules/sharp/build/Release/ && \
37+
echo ">>> Listing /build/node_modules/sharp/vendor contents (if exists):" && \
38+
ls -lR /build/node_modules/sharp/vendor/ || echo "(Vendor dir listing failed or not found)" && \
39+
exit 1; \
3940
fi
4041
# --- END TEMPORARY DEBUG STEP ---
4142

0 commit comments

Comments
 (0)