-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-bake.hcl
108 lines (100 loc) · 2.84 KB
/
docker-bake.hcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
variable "NODE_VERSION" {
default = "22.5"
}
variable "YARN_VERSION" {
default = ""
}
group "default" {
targets = [
"base",
"data-availability",
"data-product-detail",
"explore-data-products",
"prototype-data",
"sample-explorer",
"taxonomic-lists"
]
}
target "base" {
args = {
YARN_VERSION = "${YARN_VERSION}"
}
tags = ["portal-react-apps:latest-builder-base"]
dockerfile = "build.Dockerfile"
no-cache = true
contexts = {
"portal-react-apps/node:current" = "docker-image://node:${NODE_VERSION}-alpine"
}
}
target "data-availability" {
args = {
YARN_VERSION = "${YARN_VERSION}"
}
tags = ["portal-react-apps/data-availability:latest-builder-base"]
dockerfile = "apps/data-availability/build.Dockerfile"
no-cache = true
contexts = {
"portal-react-apps:latest-builder-base" = "target:base"
"portal-react-apps/node:current" = "docker-image://node:${NODE_VERSION}-alpine"
}
}
target "data-product-detail" {
args = {
YARN_VERSION = "${YARN_VERSION}"
}
tags = ["portal-react-apps/data-product-detail:latest-builder-base"]
dockerfile = "apps/data-product-detail/build.Dockerfile"
no-cache = true
contexts = {
"portal-react-apps:latest-builder-base" = "target:base"
"portal-react-apps/node:current" = "docker-image://node:${NODE_VERSION}-alpine"
}
}
target "explore-data-products" {
args = {
YARN_VERSION = "${YARN_VERSION}"
}
tags = ["portal-react-apps/explore-data-products:latest-builder-base"]
dockerfile = "apps/explore-data-products/build.Dockerfile"
no-cache = true
contexts = {
"portal-react-apps:latest-builder-base" = "target:base"
"portal-react-apps/node:current" = "docker-image://node:${NODE_VERSION}-alpine"
}
}
target "prototype-data" {
args = {
YARN_VERSION = "${YARN_VERSION}"
}
tags = ["portal-react-apps/prototype-data:latest-builder-base"]
dockerfile = "apps/prototype-data/build.Dockerfile"
no-cache = true
contexts = {
"portal-react-apps:latest-builder-base" = "target:base"
"portal-react-apps/node:current" = "docker-image://node:${NODE_VERSION}-alpine"
}
}
target "sample-explorer" {
args = {
YARN_VERSION = "${YARN_VERSION}"
}
tags = ["portal-react-apps/sample-explorer:latest-builder-base"]
dockerfile = "apps/sample-explorer/build.Dockerfile"
no-cache = true
contexts = {
"portal-react-apps:latest-builder-base" = "target:base"
"portal-react-apps/node:current" = "docker-image://node:${NODE_VERSION}-alpine"
}
}
target "taxonomic-lists" {
args = {
YARN_VERSION = "${YARN_VERSION}"
}
tags = ["portal-react-apps/taxonomic-lists:latest-builder-base"]
dockerfile = "apps/taxonomic-lists/build.Dockerfile"
no-cache = true
contexts = {
"portal-react-apps:latest-builder-base" = "target:base"
"portal-react-apps/node:current" = "docker-image://node:${NODE_VERSION}-alpine"
}
}