-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (27 loc) · 861 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
DOCKER_IMAGE=mui-bootstrap-styling-bug
VERSION=REPRODUCE_BUG
.PHONY: help
help: ## Show help message
@grep -hE '^\S+:.*##' $(MAKEFILE_LIST) | sed -e 's/:[[:blank:]]*\(##\)[[:blank:]]*/\1/' | column -s '##' -t
.PHONY: build
build: ## create production build assets
@npm run build
.PHONY: clean
clean: ## remove production build assets
@rm -Rf .next
.PHONY: setup
setup: ## setup repo for development
@npm i
.PHONY: serve
serve: ## serve production build assets
@npm run start
.PHONY: container
container: ## build deployable docker container
@sudo docker build -t ${DOCKER_IMAGE}:${VERSION} .
.PHONY: container-start
container-start: ## run previously build docker container
@echo running ${DOCKER_IMAGE}:${VERSION}
@sudo docker run -p 3000:3000 ${DOCKER_IMAGE}:${VERSION}
.PHONY: dev-server
dev-server: ## start development server
@npm run dev