Zack Williams | 4d0be65 | 2016-04-07 13:30:33 -0700 | [diff] [blame] | 1 | IMAGE_NAME:=xosproject/syndicate-ms |
| 2 | CONTAINER_NAME:=xos-syndicate-ms |
Jeremy Mowery | e07a38b | 2016-04-16 12:25:30 -0700 | [diff] [blame] | 3 | NO_DOCKER_CACHE?=false |
Zack Williams | 4d0be65 | 2016-04-07 13:30:33 -0700 | [diff] [blame] | 4 | |
| 5 | .PHONY: build |
| 6 | build: ; docker build --no-cache=${NO_DOCKER_CACHE} --rm -t ${IMAGE_NAME} . |
| 7 | |
| 8 | .PHONY: run |
| 9 | run: ; docker run -d -p 8080:8080 --name ${CONTAINER_NAME} ${IMAGE_NAME} |
| 10 | |
| 11 | .PHONY: stop |
| 12 | stop: ; docker stop ${CONTAINER_NAME} |
| 13 | |
| 14 | .PHONY: rm |
| 15 | rm: ; docker rm ${CONTAINER_NAME} |
| 16 | |
| 17 | .PHONY: rmi |
| 18 | rmi: ; docker rmi ${IMAGE_NAME} |
Jeremy Mowery | 10cdc47 | 2016-04-16 12:26:50 -0700 | [diff] [blame^] | 19 | |