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
This commit is contained in:
Ronan Jouchet 2021-03-10 19:44:40 -05:00
parent 21665cac5f
commit ffa421eb8e
1 changed files with 1 additions and 1 deletions

View File

@ -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