chore: add docker commands to makefile
This commit is contained in:
parent
6440077b98
commit
f89b159fe6
1 changed files with 9 additions and 2 deletions
11
makefile
11
makefile
|
@ -1,14 +1,21 @@
|
||||||
PAR := $(MAKE) -j 128
|
PAR := $(MAKE) -j 128
|
||||||
|
DOCKER_NAME := pleshevski
|
||||||
|
DOCKER_TAG := pleshevski
|
||||||
|
|
||||||
|
|
||||||
watch:
|
watch:
|
||||||
$(PAR) hr ts-w
|
$(PAR) hr ts-w
|
||||||
|
|
||||||
|
docker-restart: docker-stop docker-run
|
||||||
|
|
||||||
|
docker-stop:
|
||||||
|
docker rm ${DOCKER_NAME} --force
|
||||||
|
|
||||||
docker-run:
|
docker-run:
|
||||||
docker run -d --restart always -p 30000:30000 pleshevski
|
docker run -d --restart always -p 30000:30000 --name ${DOCKER_NAME} ${DOCKER_TAG}
|
||||||
|
|
||||||
docker-build:
|
docker-build:
|
||||||
docker build -t pleshevski .
|
docker build -t ${DOCKER_TAG} .
|
||||||
|
|
||||||
build: ts
|
build: ts
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue