Skip to content

Commit

Permalink
Add Docker build system
Browse files Browse the repository at this point in the history
  • Loading branch information
bfirsh committed Sep 18, 2016
1 parent a6892e2 commit f48aafc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM node:4
RUN npm install -g grunt-cli
ADD . /code
WORKDIR /code
RUN npm install
CMD grunt
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ A JavaScript NES emulator.
Build
-----

To build a distribution, you will [Grunt](http://gruntjs.com):
To run locally:

$ sudo npm install -g grunt-cli
$ docker-compose up

Then run:
And it'll be available at http://localhost

$ npm install
$ grunt
To build a distribution:

$ docker-compose run build grunt

This will create ``jsnes.js`` and ``jsnes-min.js`` in ``build/``.

Expand Down
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ web:
- 80:80
volumes:
- "./:/usr/share/nginx/html"
build:
build: .
command: /bin/true
volumes:
- ./:/code

0 comments on commit f48aafc

Please sign in to comment.