Skip to content
This repository was archived by the owner on Aug 2, 2025. It is now read-only.

Commit f6e5c8a

Browse files
committed
Build containers with buildkit
1 parent fd891d4 commit f6e5c8a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
help: ## Display this help
33
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
44

5+
.PHONY: build
6+
build: ## Build containers
7+
DOCKER_BUILDKIT=1 docker-compose pull
8+
DOCKER_BUILDKIT=1 docker-compose build
9+
510
.PHONY: init
611
init: ## Init database
712
@rm -f var/db.sqlite
@@ -17,7 +22,7 @@ clean: ## Clean project files
1722
.PHONY: serve
1823
serve: ## Run project through docker-compose
1924
@echo "--> Start containers"
20-
@docker-compose up -d --force-recreate
25+
@DOCKER_BUILDKIT=1 docker-compose up -d --force-recreate
2126

2227
@echo "--> Install vendors"
2328
@docker-compose exec fpm composer install --no-dev

0 commit comments

Comments
 (0)