This commit is contained in:
2022-10-20 10:39:56 +02:00
parent c37d824191
commit aa722718f7
3 changed files with 53 additions and 58 deletions

View File

@@ -43,18 +43,13 @@ local-format: ## format locally all files
gofmt -s -l -w .
.PHONY: build
build: sources-image ## Build the docker image with application binary
build: ## Build the docker image with application binary
@echo "+ $@"
docker build --no-cache \
-f containers/Dockerfile \
--build-arg SOURCES_IMAGE=$(NAME)-sources:$(VERSION) \
-t poketools:$(VERSION) .
GIT_CREDENTIALS?=$(shell cat ~/.git-credentials 2> /dev/null)
.PHONY: sources-image
sources-image: ## Generate a Docker image with only the sources
@echo "+ $@"
docker build -t $(NAME)-sources:$(VERSION) -f containers/Dockerfile.sources .
.PHONY: local-run-dependencies