forked from gothinkster/angular-realworld-example-app
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdevfile.yaml
42 lines (39 loc) · 1.02 KB
/
devfile.yaml
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
schemaVersion: 2.2.2
metadata:
name: nodejs-angular
components:
- name: tools
container:
image: quay.io/devfile/universal-developer-image:ubi8-latest
endpoints:
- exposure: public
name: angular
protocol: https
targetPort: 4200
memoryLimit: 2G
mountSources: true
commands:
- id: install-dependencies
exec:
label: "Install all required dependencies"
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "yarn install"
group:
kind: build
- id: build
exec:
label: "Build application"
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "NODE_OPTIONS=--openssl-legacy-provider yarn build"
group:
kind: build
- id: start
exec:
label: "Start application"
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "NODE_OPTIONS=--openssl-legacy-provider yarn run start --host 0.0.0.0 --disableHostCheck true"
group:
kind: run