Skip to content

Instantly share code, notes, and snippets.

@distributedlife
Last active August 29, 2015 14:23
Show Gist options
  • Select an option

  • Save distributedlife/b47f1283a5da92c89ce5 to your computer and use it in GitHub Desktop.

Select an option

Save distributedlife/b47f1283a5da92c89ce5 to your computer and use it in GitHub Desktop.
ensemblejs docker spike
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"]
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