Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
Merge pull request #4 from visualaram/patch-1
Browse files Browse the repository at this point in the history
Fix for node native modules
  • Loading branch information
curcuz committed Jun 30, 2016
2 parents a74752f + f3c2af8 commit 0baa6f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 0baa6f2

Please sign in to comment.