@next-boilerplate/cli
Version:
CLI for Next Boilerplate
29 lines (24 loc) • 831 B
Plain Text
.PHONY: buildnrun bnr help
# The default goal is 'help'
.DEFAULT_GOAL := help
# Main build and run target
buildnrun:
# Alias for buildnrun
bnr:
# Internal buildnrun target
_buildnrun:
ifeq ($(CMD),app)
docker build -f apps/app/Dockerfile -t next-boilerplate/app --network host .
docker run -e PORT=8080 --network host next-boilerplate/app
else
endif
# Help message
help: