Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added bun.lockb
Binary file not shown.
39 changes: 22 additions & 17 deletions lenra.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,40 @@
componentsApi: "1.0"
generator:
dofigen:
builders:
- from: "docker.io/bitnami/node:18"
- name: bun-install
from: oven/bun
workdir: /app
root:
script:
- chown -R 1000 /app
- chown -R 1000:1000 /app
adds:
- "*.json"
- package.json
- bun.lockb
script:
- npm ci --omit=dev
from: builder-0
- bun install --production
- name: read-access
from: bun-install
root:
script:
- chmod +r -R /app
from: read-access
adds:
- .
cmd:
- node
- node_modules/@lenra/app-server/dist/bin/app-lenra.js
- bun
- node_modules/@lenra/app/dist/bin/app-lenra.js
- start
envs:
NODE_ENV: production
MAX_RAW_SIZE: 50mb
MAX_JSON_SIZE: 50mb
ports:
- 3000
healthcheck:
cmd: bun run healthcheck http://localhost:8080/_/health
interval: 1s
timeout: 1s
start: 200ms
ignores:
- "**"
- "!/*.json"
- "!/package.json"
- "!/bun.lockb"
- "!/src/"
# dev:
# dofigen:
# cmd:
# - npm run debug
# ports:
# - 9229
Loading