mirror of
https://github.com/mveril/qp-demo
synced 2024-12-22 20:35:26 +01:00
29 lines
523 B
Makefile
29 lines
523 B
Makefile
IMAGE = qp2
|
|
NETWORK = demo-net
|
|
|
|
default:
|
|
docker build -t $(IMAGE) .
|
|
|
|
no-cache:
|
|
docker build -t $(IMAGE) --no-cache .
|
|
|
|
compile:
|
|
docker build -t $(IMAGE) -f Dockerfile.compile .
|
|
|
|
compile-no-cache:
|
|
docker build -t $(IMAGE) -f Dockerfile.compile --no-cache . .
|
|
|
|
network:
|
|
docker network create -o "com.docker.network.bridge.enable_icc"="false" $(NETWORK)
|
|
|
|
network-clean:
|
|
docker network rm $(NETWORK)
|
|
|
|
image-clean:
|
|
docker image rm $(IMAGE)
|
|
|
|
clean: network-clean image-clean
|
|
|
|
test:
|
|
docker run -h qp-demo --rm -it $(IMAGE)
|