add port to Makefile
This commit is contained in:
parent
4962cc0920
commit
c8539af605
@ -1,10 +1,11 @@
|
||||
IMAGE_NAME=unshortener-api
|
||||
CONTAINER_NAME=unshortener
|
||||
CONTAINER_PORT=8000
|
||||
|
||||
build:
|
||||
docker build -t $(IMAGE_NAME) .
|
||||
run:
|
||||
docker run --name $(CONTAINER_NAME) -d $(IMAGE_NAME)
|
||||
docker run --name $(CONTAINER_NAME) -d -p $(CONTAINER_PORT):8000 $(IMAGE_NAME)
|
||||
stop:
|
||||
docker stop $(CONTAINER_NAME)
|
||||
clean:
|
||||
|
Loading…
Reference in New Issue
Block a user