add API Makefile
This commit is contained in:
parent
b2ba4309cf
commit
cf852fa14f
14
server/Makefile
Normal file
14
server/Makefile
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
IMAGE_NAME=unshortener-api
|
||||||
|
CONTAINER_NAME=unshortener
|
||||||
|
|
||||||
|
build:
|
||||||
|
docker build -t $(IMAGE_NAME) .
|
||||||
|
run:
|
||||||
|
docker run --name $(CONTAINER_NAME) -d $(IMAGE_NAME)
|
||||||
|
stop:
|
||||||
|
docker stop $(CONTAINER_NAME)
|
||||||
|
clean:
|
||||||
|
docker rm $(CONTAINER_NAME)
|
||||||
|
|
||||||
|
clean-image:
|
||||||
|
docker rmi $(IMAGE_NAME)
|
Loading…
Reference in New Issue
Block a user