.PHONY = start push-image build-image start-image

node_modules: package.json
	@npm install

start: node_modules
	@node .

build-image:
	@docker build -t eventspace-ui .

push-image: build-image
	@docker tag eventspace-ui eu.gcr.io/eventspace-145920/eventspace-ui
	@gcloud docker -- push eu.gcr.io/eventspace-145920/eventspace-ui

start-image: build-image
	@docker run -i -t -p 8000:8000 eventspace-ui
