Skip to content

Commit

Permalink
Set Dockerfile syntax version to 1.11
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Nuno Santos <pedro.santos@yoti.com>
  • Loading branch information
pn-santos committed Nov 27, 2024
1 parent b6e2e05 commit 5d37987
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# syntax = docker/dockerfile:experimental
# syntax = docker/dockerfile:1.11

FROM concourse/golang-builder AS builder
WORKDIR /src
COPY go.mod /src/go.mod
COPY go.sum /src/go.sum
RUN --mount=type=cache,target=/root/.cache/go-build go get -d ./...
COPY . /src
ENV CGO_ENABLED 0
ENV CGO_ENABLED=0
RUN go build -o /assets/task ./cmd/task
RUN go build -o /assets/build ./cmd/build

Expand Down
2 changes: 1 addition & 1 deletion testdata/buildkit-secret/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# syntax = docker/dockerfile:1.0-experimental
# syntax = docker/dockerfile:1.11
FROM busybox
RUN --mount=type=secret,id=secret test "$(cat /run/secrets/secret)" = "hello-world"
2 changes: 1 addition & 1 deletion testdata/buildkit-ssh/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# syntax = docker/dockerfile:1.0-experimental
# syntax = docker/dockerfile:1.11
FROM alpine

RUN apk add --no-cache openssh-client
Expand Down
4 changes: 2 additions & 2 deletions testdata/multi-arch/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# syntax = docker/dockerfile:1.0-experimental
# syntax = docker/dockerfile:1.11
FROM alpine

RUN apk add --no-cache vim
RUN apk add --no-cache vim

0 comments on commit 5d37987

Please sign in to comment.