Skip to content

Commit 9d10991

Browse files
chore(makefile): run 'build run' as default to easier execution
1 parent 1e8b20a commit 9d10991

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
.PHONY: build build\run run stop clean run-dev test-contract test test-mutation-diff test-mutation test-infra
1+
.PHONY: build run stop clean run-dev test-contract test test-unit test-integration test-mutation-diff test-mutation test-infra
22
# serverest
33

4-
NAME_IMAGE=serverest
4+
NAME_IMAGE=serverest/serverest
55
HOST_PORT=3000
66

77
# COMANDOS PARA USAR A IMAGEM DE PRODUÇÃO \/
88

9-
build:
10-
@DOCKER_BUILDKIT=1 docker build -t ${NAME_IMAGE}/${NAME_IMAGE} --target prod .
9+
default: build run
1110

12-
build/run: build run
11+
build:
12+
@DOCKER_BUILDKIT=1 docker build -t ${NAME_IMAGE} --target prod .
1313

1414
run:
15-
@docker run -p ${HOST_PORT}:3000 ${NAME_IMAGE}/${NAME_IMAGE}
15+
@docker run -p ${HOST_PORT}:3000 ${NAME_IMAGE}
1616

1717
stop:
18-
@docker stop -t 0 $$(docker ps -q --filter ancestor=${NAME_IMAGE}/${NAME_IMAGE})
18+
@docker stop -t 0 $$(docker ps -q --filter ancestor=${NAME_IMAGE})
1919

2020
clean:
21-
@docker rmi -f ${NAME_IMAGE}/${NAME_IMAGE}
21+
@docker rmi -f ${NAME_IMAGE}
2222

2323
# COMANDOS DE DESENVOLVIMENTO \/
2424

0 commit comments

Comments
 (0)