build: force BuildKit in Makefile so RUN --mount cache works on Linux

Legacy Docker builders fall back without BuildKit and fail on
`RUN --mount=type=cache`. Export DOCKER_BUILDKIT and
COMPOSE_DOCKER_CLI_BUILD for all make targets.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Senko-san
2026-06-10 13:36:36 +03:00
parent 6b4a5a3099
commit 6883dce24d
+5
View File
@@ -3,6 +3,11 @@
COMPOSE := docker compose
# Force BuildKit so `RUN --mount=type=cache` works everywhere (older/Linux
# Docker engines otherwise fall back to the legacy builder and fail the build).
export DOCKER_BUILDKIT := 1
export COMPOSE_DOCKER_CLI_BUILD := 1
.DEFAULT_GOAL := help
.PHONY: help env up build rebuild down stop restart ps logs logs-api logs-webui \
sh-api sh-webui db-shell redis-cli migrate makemigration downgrade \