Last active
August 29, 2015 14:23
-
-
Save distributedlife/b47f1283a5da92c89ce5 to your computer and use it in GitHub Desktop.
ensemblejs docker spike
This file contains hidden or 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
| FROM node:latest | |
| MAINTAINER Ryan Boucher ryan.boucher@distributedlife.com | |
| RUN npm i ensemblejs -g | |
| ADD game /app/game | |
| ADD gulpfile.js /app/gulpfile.js | |
| ADD package.json /app/package.json | |
| ADD supporting-libs /app/supporting-libs | |
| ADD three-js-dep /app/three-js-dep | |
| RUN cd /app && npm i | |
| EXPOSE 3000 | |
| RUN rm /bin/sh && ln -s /bin/bash /bin/sh | |
| CMD ["start", "/app/game"] |
This file contains hidden or 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
| docker build -t henrythehamster/arcus . | |
| docker run -d -p 3000:3000 henrythehamster/arcus | |
| boot2docker ip #this is where the IP address comes from | |
| open http://-the-ip-address:3000/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment