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:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user