diff --git a/Dockerfile b/Dockerfile index 804050b0..6d0051d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -# syntax=docker/dockerfile:1.3 +# syntax=docker/dockerfile:1.4 ARG GO_VERSION=1.17 ARG DOCKERD_VERSION=20.10.8 diff --git a/docs/reference/buildx_build.md b/docs/reference/buildx_build.md index ff89f0fa..94ecd614 100644 --- a/docs/reference/buildx_build.md +++ b/docs/reference/buildx_build.md @@ -429,7 +429,7 @@ Attribute keys: - `src`, `source` - Secret filename. `id` used if unset. ```dockerfile -# syntax=docker/dockerfile:1.3 +# syntax=docker/dockerfile:1.4 FROM python:3 RUN pip install awscli RUN --mount=type=secret,id=aws,target=/root/.aws/credentials \ @@ -448,7 +448,7 @@ Attribute keys: - `env` - Secret environment variable. `id` used if unset, otherwise will look for `src`, `source` if `id` unset. ```dockerfile -# syntax=docker/dockerfile:1.3 +# syntax=docker/dockerfile:1.4 FROM node:alpine RUN --mount=type=bind,target=. \ --mount=type=secret,id=SECRET_TOKEN \ @@ -480,7 +480,7 @@ authentication (e.g., cloning a private repository). Example to access Gitlab using an SSH agent socket: ```dockerfile -# syntax=docker/dockerfile:1.3 +# syntax=docker/dockerfile:1.4 FROM alpine RUN apk add --no-cache openssh-client RUN mkdir -p -m 0700 ~/.ssh && ssh-keyscan gitlab.com >> ~/.ssh/known_hosts diff --git a/hack/dockerfiles/authors.Dockerfile b/hack/dockerfiles/authors.Dockerfile index 68a1a90b..827ccc9b 100644 --- a/hack/dockerfiles/authors.Dockerfile +++ b/hack/dockerfiles/authors.Dockerfile @@ -1,4 +1,4 @@ -# syntax=docker/dockerfile:1.3-labs +# syntax=docker/dockerfile:1.4 FROM alpine:3.14 AS gen RUN apk add --no-cache git diff --git a/hack/dockerfiles/docs.Dockerfile b/hack/dockerfiles/docs.Dockerfile index b7a9d6aa..d2805315 100644 --- a/hack/dockerfiles/docs.Dockerfile +++ b/hack/dockerfiles/docs.Dockerfile @@ -1,4 +1,4 @@ -# syntax=docker/dockerfile:1.3-labs +# syntax=docker/dockerfile:1.4 ARG GO_VERSION=1.17 ARG FORMATS=md,yaml diff --git a/hack/dockerfiles/lint.Dockerfile b/hack/dockerfiles/lint.Dockerfile index f0338a46..89b63459 100644 --- a/hack/dockerfiles/lint.Dockerfile +++ b/hack/dockerfiles/lint.Dockerfile @@ -1,4 +1,4 @@ -# syntax=docker/dockerfile:1.3 +# syntax=docker/dockerfile:1.4 ARG GO_VERSION=1.17 diff --git a/hack/dockerfiles/vendor.Dockerfile b/hack/dockerfiles/vendor.Dockerfile index 8620f276..387e07d9 100644 --- a/hack/dockerfiles/vendor.Dockerfile +++ b/hack/dockerfiles/vendor.Dockerfile @@ -1,4 +1,4 @@ -# syntax=docker/dockerfile:1.3-labs +# syntax=docker/dockerfile:1.4 ARG GO_VERSION=1.17 ARG MODOUTDATED_VERSION=v0.8.0