-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add npm script to build and run nuclear:prod using docker (#173)
- Loading branch information
1 parent
e6e7c47
commit d949b3d
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM node | ||
|
||
WORKDIR /usr/src/ | ||
COPY . nuclear | ||
|
||
RUN apt-get update && apt-get install -y libnss3 libgtk-3-0 libx11-xcb1 libxss1 libasound2 | ||
|
||
WORKDIR nuclear | ||
RUN npm install && npm run build:dist && npm run build:electron && npm run pack | ||
RUN ls -a | grep -v release | xargs rm -rf || true | ||
|
||
CMD ["./release/linux-unpacked/nuclear"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters