From 706456de1f63a4b9796592fd452da7ce30735274 Mon Sep 17 00:00:00 2001 From: Jason Robinson Date: Tue, 26 Apr 2022 17:31:52 +0300 Subject: [PATCH] Mark Dockerfile as requiring BuildKit (#12541) Co-authored-by: David Robertson --- changelog.d/12541.docker | 1 + docker/Dockerfile | 1 + 2 files changed, 2 insertions(+) create mode 100644 changelog.d/12541.docker diff --git a/changelog.d/12541.docker b/changelog.d/12541.docker new file mode 100644 index 0000000000..c3b9c31657 --- /dev/null +++ b/changelog.d/12541.docker @@ -0,0 +1 @@ +Explicitly opt-in to using [BuildKit-specific features](https://github.com/moby/buildkit/blob/master/frontend/dockerfile/docs/syntax.md) in the Dockerfile. This fixes issues with building images in some GitLab CI environments. diff --git a/docker/Dockerfile b/docker/Dockerfile index 4523c60645..ccc6a9f778 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,3 +1,4 @@ +# syntax=docker/dockerfile:1 # Dockerfile to build the matrixdotorg/synapse docker images. # # Note that it uses features which are only available in BuildKit - see