unshorten/server/Makefile

15 lines
312 B
Makefile
Raw Permalink Normal View History

2024-04-14 00:51:37 +00:00
IMAGE_NAME=unshortener-api
CONTAINER_NAME=unshortener
2024-04-14 01:09:13 +00:00
CONTAINER_PORT=8000
2024-04-14 00:51:37 +00:00
build:
docker build -t $(IMAGE_NAME) .
run:
2024-04-14 01:09:13 +00:00
docker run --name $(CONTAINER_NAME) -d -p $(CONTAINER_PORT):8000 $(IMAGE_NAME)
2024-04-14 00:51:37 +00:00
stop:
docker stop $(CONTAINER_NAME)
clean:
docker rm $(CONTAINER_NAME)
clean-image:
docker rmi $(IMAGE_NAME)