summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Dockerfile6
-rw-r--r--README.md11
-rw-r--r--docker-compose.yml5
3 files changed, 17 insertions, 5 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..90a36d5
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,6 @@
+FROM node:4
+RUN npm install -g grunt-cli
+ADD . /code
+WORKDIR /code
+RUN npm install
+CMD grunt
diff --git a/README.md b/README.md
index a1bab5c..b00c398 100644
--- a/README.md
+++ b/README.md
@@ -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/``.
diff --git a/docker-compose.yml b/docker-compose.yml
index 00a6f9f..4ea1637 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -4,3 +4,8 @@ web:
- 80:80
volumes:
- "./:/usr/share/nginx/html"
+build:
+ build: .
+ command: /bin/true
+ volumes:
+ - ./:/code