-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlenra.yml
53 lines (53 loc) · 1.17 KB
/
lenra.yml
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
componentsApi: "1.0"
generator:
dofigen:
builders:
- name: module-loader
from: &image "docker.io/bitnami/node:18"
workdir: /tmp/module
adds:
- package.json
- package-lock.json
script:
- npm i --production --cache /tmp/cache
caches:
- /tmp/cache
- name: builder
from: *image
workdir: /tmp/app
adds:
- .
script:
- npm i --cache /tmp/cache
- npm run build
caches:
- /tmp/cache
from: *image
workdir: /app
artifacts:
- builder: module-loader
source: "/tmp/module/"
destination: "/app/"
- builder: builder
source: "/tmp/app/dist/"
destination: "/app/dist/"
- builder: builder
source: "/tmp/app/resources/"
destination: "/app/resources/"
cmd:
- npm
- start
ports:
- 3000
envs:
suppress_lock: "true"
healthcheck:
cmd: curl --fail http://localhost:8080/_/health
start: 3s
interval: 3s
timeout: 1s
ignores:
- "**"
- "!/*.json"
- "!/src/"
- "!/resources/"