Commit d7d56492 authored by Frank Rousseau's avatar Frank Rousseau
Browse files

Add build directive to Makefile

parent 7da8b0f1
......@@ -8,8 +8,11 @@ help:
@echo "$(APP_NAME):$(APP_VSN)-$(BUILD)"
@perl -nle'print $& if m{^[a-zA-Z_-]+:.*?## .*$$}' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
build: ## Build the Docker image
docker build --build-arg APP_NAME=$(APP_NAME) \
build:
MIX_ENV=prod mix distillery.release --env=prod --name=gaja
build_docker: ## Build the Docker image
docker build --no-cache --build-arg APP_NAME=$(APP_NAME) \
--build-arg APP_VSN=$(APP_VSN) \
--build-arg MIX_ENV=prod \
-t $(APP_NAME):$(APP_VSN)-$(BUILD) \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment