Tweaks
This commit is contained in:
@ -1,12 +1,14 @@
|
||||
IMAGE_NAME=api-server-ms
|
||||
CONTAINER_NAME=api-server-ms
|
||||
|
||||
|
||||
build: clean
|
||||
@docker build \
|
||||
--progress=plain \
|
||||
--tag $(IMAGE_NAME) \
|
||||
.
|
||||
|
||||
|
||||
build-multistage: clean
|
||||
@docker build \
|
||||
--progress=plain \
|
||||
@ -14,6 +16,7 @@ build-multistage: clean
|
||||
--file Dockerfile.multistage \
|
||||
.
|
||||
|
||||
|
||||
run:
|
||||
@docker run \
|
||||
--name $(IMAGE_NAME) \
|
||||
@ -22,6 +25,7 @@ run:
|
||||
--detach \
|
||||
$(CONTAINER_NAME)
|
||||
|
||||
|
||||
clean:
|
||||
- @docker stop $(CONTAINER_NAME)
|
||||
- @docker rm $(CONTAINER_NAME)
|
||||
|
||||
Reference in New Issue
Block a user