Skip to content

Commit b8478d7

Browse files
lbussellCopilot
andcommitted
Remove unnecessary # syntax=docker/dockerfile:1 directive from AOT Dockerfiles
BuildKit is the default builder since Docker/Moby 23.0, and imagebuilder runs moby-engine 25.0.3 on Azure Linux 3.0. The syntax directive is no longer needed. Removing it avoids pulling a remote image under network isolation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 5d92928 commit b8478d7

File tree

16 files changed

+2
-18
lines changed

16 files changed

+2
-18
lines changed

eng/dockerfile-templates/sdk/Dockerfile.linux.aot

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
"llvm"
2727
]))))
2828

29-
}}# syntax=docker/dockerfile:1
30-
ARG REPO=mcr.microsoft.com/dotnet/sdk
29+
}}ARG REPO=mcr.microsoft.com/dotnet/sdk
3130
FROM {{baseImageTag}}
3231

3332
RUN {{InsertTemplate("../Dockerfile.linux.install-pkgs", [ "pkgs": pkgs ])}}

eng/dockerfile-templates/sdk/Dockerfile.linux.aot-cross

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
"http://archive.ubuntu.com/ubuntu/",
2727
"http://ports.ubuntu.com/ubuntu-ports/")
2828

29-
}}# syntax=docker/dockerfile:1
30-
ARG REPO=mcr.microsoft.com/dotnet/sdk
29+
}}ARG REPO=mcr.microsoft.com/dotnet/sdk
3130
FROM {{baseImageTag}}
3231

3332
{{if match(OS_VERSION, "jammy"):RUN echo "deb [arch={{targetArchShortName}}] {{ubuntuPortsUrl}} {{OS_VERSION}} main restricted" > {{sourcesListFilePath}} \

src/sdk/10.0/alpine3.23-aot/amd64/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# syntax=docker/dockerfile:1
21
ARG REPO=mcr.microsoft.com/dotnet/sdk
32
FROM $REPO:10.0.201-alpine3.23-amd64
43

src/sdk/10.0/alpine3.23-aot/arm64v8/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# syntax=docker/dockerfile:1
21
ARG REPO=mcr.microsoft.com/dotnet/sdk
32
FROM $REPO:10.0.201-alpine3.23-arm64v8
43

src/sdk/10.0/azurelinux3.0-aot/amd64/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# syntax=docker/dockerfile:1
21
ARG REPO=mcr.microsoft.com/dotnet/sdk
32
FROM $REPO:10.0.201-azurelinux3.0-amd64
43

src/sdk/10.0/azurelinux3.0-aot/arm64v8/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# syntax=docker/dockerfile:1
21
ARG REPO=mcr.microsoft.com/dotnet/sdk
32
FROM $REPO:10.0.201-azurelinux3.0-arm64v8
43

src/sdk/10.0/noble-aot/amd64/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# syntax=docker/dockerfile:1
21
ARG REPO=mcr.microsoft.com/dotnet/sdk
32
FROM $REPO:10.0.201-noble-amd64
43

src/sdk/10.0/noble-aot/arm64v8/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# syntax=docker/dockerfile:1
21
ARG REPO=mcr.microsoft.com/dotnet/sdk
32
FROM $REPO:10.0.201-noble-arm64v8
43

src/sdk/10.0/resolute-aot/amd64/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# syntax=docker/dockerfile:1
21
ARG REPO=mcr.microsoft.com/dotnet/sdk
32
FROM $REPO:10.0.201-resolute-amd64
43

src/sdk/10.0/resolute-aot/arm64v8/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# syntax=docker/dockerfile:1
21
ARG REPO=mcr.microsoft.com/dotnet/sdk
32
FROM $REPO:10.0.201-resolute-arm64v8
43

0 commit comments

Comments
 (0)