## Autogenerated by rang, you might want to change the handle
handle=yourproject
.PHONY: update build launch bash daemon stop export rebuild

update:
	Rscript inst/rang/update.R
build: Dockerfile
	docker build -t ${handle}img .
launch:
	-docker run --rm --name "${handle}container" -ti ${handle}img
bash:
	-docker run --rm --name "${handle}container" --entrypoint bash -ti ${handle}img
daemon:
	-docker run -d --rm --name "${handle}container" -ti ${handle}img
stop:
	-docker stop ${handle}container
export:
	docker save ${handle}img | gzip > ${handle}img.tar.gz
rebuild: ${handle}img.tar.gz
	docker load < ${handle}img.tar.gz
