From 3adfbad41ca5dc59b73b60288e45e736fd1fd7d0 Mon Sep 17 00:00:00 2001 From: visualaram Date: Thu, 30 Jun 2016 15:38:22 -0300 Subject: [PATCH 1/2] Fix for node native modules --- Dockerfile.template | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile.template b/Dockerfile.template index ee9212d..069f544 100644 --- a/Dockerfile.template +++ b/Dockerfile.template @@ -56,8 +56,12 @@ COPY ./package.json ./app/ # NPM i app RUN npm i --prefix /app + # Move app to filesystem COPY . ./app +# NPM rebuild node native modules after electron is installed. +RUN ./app/node_modules/.bin/electron-rebuild + # Start app CMD ["bash", "/app/start.sh"] From f3c2af8e2f39e90f342e0634081f01ccf311d4bd Mon Sep 17 00:00:00 2001 From: visualaram Date: Thu, 30 Jun 2016 15:39:48 -0300 Subject: [PATCH 2/2] Add electron rebuild package --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 29eb53c..4c24271 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,8 @@ "js" ], "dependencies": { - "electron-prebuilt": "^1.1.3" + "electron-prebuilt": "^1.1.3", + "electron-rebuild" :"*" }, "author": "Carlo Maria Curinga", "license": "Apache-2.0",