opensupports/client/Makefile
Maximiliano Redigonda 5e7f39df05
[DEV-315] Create docker routine for frontend that works on Mac (#1175)
* [DEV-315] Create docker routine for frontend that works on Mac

* Add make option to run bash inside container
2022-05-04 11:06:17 -03:00

12 lines
436 B
Makefile

build:
@docker pull node:11.15.0
run: stop
@docker run --platform=linux/amd64 --network os-net --name opensupports-client -v $(PWD):/client:delegated -p 3000:3000 node:11.15.0 sh -c "cd client && npm install && npm start"
sh: stop
@docker run -it --platform=linux/amd64 --network os-net --name opensupports-client -v $(PWD):/client:delegated -p 3000:3000 node:11.15.0 sh -c "bash"
stop:
@docker rm -f opensupports-client || true