Created by Nick Garanko 2016-05-31 View revision File snippet.txt Added Side-by-side diff More Ignore whitespace Hide word diff +# locally +cd ~/Projects/DockerBolo +hg clone ssh://hg@bitbucket.org/rubic/bolo + + +# And the Dockerfile + +FROM ubuntu:14.04 + +MAINTAINER Vidul Petrov "vidul.petrov@gmail.com" + +RUN apt-get update +RUN apt-get install -y nodejs npm +RUN ln -sf /usr/bin/nodejs /usr/bin/node + +RUN npm install -g cordova ionic@1.1.0 +ADD bolo /bolo +RUN cd /bolo/apps/Bolo && npm install + +ENV PORT_HTTP 8100 +ENV PORT_RELOAD 8200 + +EXPOSE $PORT_HTTP +EXPOSE $PORT_RELOAD + +ENTRYPOINT cd /bolo/apps/Bolo && ionic serve -b -p $PORT_HTTP -r $PORT_RELOAD