From 6883dce24de06475d06b612d159e47709de0792e Mon Sep 17 00:00:00 2001 From: Senko-san Date: Wed, 10 Jun 2026 13:36:36 +0300 Subject: [PATCH] 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 --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index f563ad6..daf0230 100644 --- a/Makefile +++ b/Makefile @@ -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 \