File tree Expand file tree Collapse file tree
dockerfile-with-automatic-platform-args copy
dockerfile-with-inconsistent-base-image Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "build" : {
3+ "dockerfile" : " Dockerfile" ,
4+ "args" : {
5+ "VARIANT" : " 18-bookworm"
6+ }
7+ },
8+ "features" : {
9+ "ghcr.io/devcontainers/feature-starter/hello:1" : {
10+ "greeting" : " howdy"
11+ }
12+ }
13+ }
Original file line number Diff line number Diff line change 1+ # Copyright (c) Microsoft Corporation. All rights reserved.
2+ # Licensed under the MIT License. See License.txt in the project root for license information.
3+ ARG VARIANT="16-bullseye"
4+ ARG TARGETPLATFORM
5+ ARG TARGETOS
6+ ARG TARGETARCH
7+ ARG TARGETVARIANT
8+
9+ FROM mcr.microsoft.com/devcontainers/typescript-node:1-${VARIANT} AS base
10+
11+ FROM --platform=amd64 base AS amd64-base
12+ LABEL Architecture="amd64"
13+
14+ FROM --platform=arm64 base AS arm64-base
15+ LABEL Architecture="arm64"
16+
17+ FROM ${TARGETARCH}-base AS final
18+ ARG TARGETPLATFORM
19+ ARG TARGETOS
20+ ARG TARGETARCH
21+ ARG TARGETVARIANT
22+
23+ LABEL TargetPlatform="${TARGETPLATFORM}"
24+ LABEL TargetOS="${TARGETOS}"
25+ LABEL TargetArch="${TARGETARCH}"
26+ LABEL TargetVariant="${TARGETVARIANT}"
Original file line number Diff line number Diff line change 1+ [registry ."localhost:5000" ]
2+ http = true
3+ insecure = true
Original file line number Diff line number Diff line change 1+ {
2+ "build" : {
3+ "dockerfile" : " Dockerfile"
4+ },
5+ "features" : {
6+ "ghcr.io/devcontainers/feature-starter/hello:1" : {
7+ "greeting" : " howdy"
8+ }
9+ }
10+ }
Original file line number Diff line number Diff line change 1+ # Copyright (c) Microsoft Corporation. All rights reserved.
2+ # Licensed under the MIT License. See License.txt in the project root for license information.
3+ ARG TARGETARCH
4+
5+ FROM mcr.microsoft.com/devcontainers/typescript-node:1-16-bullseye AS base-1
6+
7+ FROM mcr.microsoft.com/devcontainers/typescript-node:1-18-bookworm AS base-2
8+
9+ FROM --platform=amd64 base-1 AS amd64-base
10+ LABEL Architecture="amd64"
11+
12+ FROM --platform=arm64 base-2 AS arm64-base
13+ LABEL Architecture="arm64"
14+
15+ FROM ${TARGETARCH}-base AS final
You can’t perform that action at this time.
0 commit comments