[2021-11-08]

docker-composeでBuildKitを使う

ビルドコマンド

DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 docker-compose build

Dockerfile

# syntax=docker/dockerfile:1.3-labs