19 lines
332 B
Makefile
19 lines
332 B
Makefile
APPLICATION_NAME := django-test
|
|
IMAGE_NAME := heinzel/$(APPLICATION_NAME)
|
|
|
|
DOCKER := docker
|
|
|
|
.PHONY: default help image run
|
|
|
|
default: image
|
|
|
|
help:
|
|
@echo "There is no help."
|
|
|
|
image:
|
|
$(DOCKER) build -t $(IMAGE_NAME) .
|
|
|
|
test-run:
|
|
$(DOCKER) run -ti -p 80:80 --name $(APPLICATION_NAME) $(IMAGE_NAME)
|
|
$(DOCKER) rm $(APPLICATION_NAME)
|