I have an Electron-based application that I want to run on Resin. Normally we compile the Electron app into a binary in the Dockerfile, however on pushing to resin:master I get the following error. Could this be caused by a setting on the Resin host running Docker, or is there some way to resolve on my end? The same command runs normally in local Docker and in Codeship Docker, where we were building the app before.
[Build] Step 25/26 : RUN ./node_modules/.bin/electron-forge make --platform=linux --arch=x64 [Build] ---> Running in abc8c692d18e [Build] ✔ Checking your system [Build] ✔ Resolving Forge Config [Build] We need to package your application before we can make it [Build] [Build] An unhandled exception has occurred inside Forge: [Build] EMFILE: too many open files, open '/tmp/electron-forge/.runtime.config' [Build] Error: EMFILE: too many open files, open '/tmp/electron-forge/.runtime.config' [Build] at Object.fs.openSync (fs.js:653:18) [Build] at Object.fs.writeFileSync (fs.js:1300:33) [Build] at BasicConfigStore.reset (/usr/src/app/node_modules/electron-forge/dist/util/config.js:68:23) [Build] at process.BasicConfigStore.process.on (/usr/src/app/node_modules/electron-forge/dist/util/config.js:43:12) [Build] at emitOne (events.js:120:20) [Build] at process.emit (events.js:210:7) [Build] Removing intermediate container abc8c692d18e [Error] Build failed: The command '/bin/sh -c ./node_modules/.bin/electron-forge make --platform=linux --arch=x64' returned a non-zero code: 1