Skip to content

Commit c999d57

Browse files
committed
add dockerfiles for test
1 parent 2d57790 commit c999d57

5 files changed

Lines changed: 67 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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}"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[registry."localhost:5000"]
2+
http = true
3+
insecure = true
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"build": {
3+
"dockerfile": "Dockerfile"
4+
},
5+
"features": {
6+
"ghcr.io/devcontainers/feature-starter/hello:1": {
7+
"greeting": "howdy"
8+
}
9+
}
10+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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

0 commit comments

Comments
 (0)