From ffa421eb8e0f239aa5deed3a5eb6a6af13d94dd8 Mon Sep 17 00:00:00 2001 From: Ronan Jouchet Date: Wed, 10 Mar 2021 19:44:40 -0500 Subject: [PATCH] Docker: attempt to fix build See https://hub.docker.com/api/audit/v1/action/05620acd-9984-4e10-9053-3a7edc0c8558/ : ``` The command '/bin/sh -c npm link && npm test && rm -rf /tmp/nativefier* ~/.npm/_cacache ~/.cache/electron && chmod +x $NPM_PACKAGES/bin/nativefier' returned a non-zero code: 243 ``` Culprit could be `rm -rf /tmp/nativefier*` : at this point /tmp/nativefier doesn't exist, so `sh` cannot evaluate glob `/tmp/nativefier*`, and exits 1 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a4c45ab..a9d38c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,7 +33,7 @@ RUN find ./icon-scripts ./src ./app -type f -print0 | xargs -0 dos2unix # Make sure nativefier is executable RUN npm link \ && npm test \ - && rm -rf /tmp/nativefier* ~/.npm/_cacache ~/.cache/electron \ + && rm -rf ~/.npm/_cacache ~/.cache/electron \ && chmod +x $NPM_PACKAGES/bin/nativefier # Run a {lin,mac,win} build