forked from OpenFunction/builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
builder.toml
83 lines (63 loc) · 1.78 KB
/
builder.toml
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
description = "Ubuntu 18 base image with buildpacks for Nodejs"
[[buildpacks]]
id = "google.config.entrypoint"
uri = "entrypoint.tgz"
[[buildpacks]]
id = "google.nodejs.npm"
uri = "nodejs/npm.tgz"
[[buildpacks]]
id = "google.nodejs.yarn"
uri = "nodejs/yarn.tgz"
[[buildpacks]]
id = "google.nodejs.functions-framework"
uri = "nodejs/functions_framework.tgz"
[[buildpacks]]
id = "google.utils.label"
uri = "label.tgz"
###########
# Node.js #
###########
# Note: We detect Node.js last because client-side .js files exist in many
# web projects and detecting Node.js last will decrease the chance of
# detection confusion.
[[order]]
[[order.group]]
id = "google.nodejs.yarn"
[[order.group]]
id = "google.nodejs.functions-framework"
optional = true
[[order.group]]
id = "google.config.entrypoint"
optional = true
[[order.group]]
id = "google.utils.label"
[[order]]
[[order.group]]
id = "google.nodejs.npm"
[[order.group]]
id = "google.nodejs.functions-framework"
optional = true
[[order.group]]
id = "google.config.entrypoint"
optional = true
[[order.group]]
id = "google.utils.label"
# Separate groups for Node.js projects without dependencies.
# Making both yarn and npm optional in the previous groups leads
# the yarn group to opt in every time.
# Node.js functions without a package.json.
[[order]]
[[order.group]]
id = "google.nodejs.functions-framework"
[[order.group]]
id = "google.config.entrypoint"
optional = true
[[order.group]]
id = "google.utils.label"
# Currently built with //builders/node14/stack/stack:build.
[stack]
id = "google"
build-image = "openfunctiondev/buildpacks-node14-build:v1"
run-image = "openfunctiondev/buildpacks-node14-run:v1"
[lifecycle]
version = "0.11.1"