|
All checks were successful
Trigger Cloudarix Deploy / call-webhook (push) Successful in 2s
|
||
|---|---|---|
| .. | ||
| jobs | ||
| utils | ||
| Dockerfile | ||
| events.ts | ||
| health.ts | ||
| index.ts | ||
| logging.ts | ||
| README.md | ||
Worker container and Dokploy settings
Build context
- Build path:
worker/(Dokploy should use this path so the worker Dockerfile is found) - Dockerfile:
worker/Dockerfile
Two-stage build (recommended)
- This repository includes a two-stage Dockerfile that compiles TypeScript in a builder stage and produces a smaller runtime image.
- The builder stage runs
npx tsc -p tsconfig.json --outDir distand the runtime stage will run the compileddist/worker/index.jsif present. If compilation is not performed, the container falls back to runningnpx tsx ./worker/index.ts.
Recommended Dokploy settings
- Provider:
Gitea - Repository:
ahmido/tenantpilot(or your repo) - Branch:
development - Build path:
worker/ - Watch paths:
worker/**,lib/**,package.json,package-lock.json
Notes
- The Dockerfile attempts to run compiled JS first; if no compiled output is present the runtime falls back to
tsx. - If Dokploy requires a separate webhook per app, use the worker webhook URL provided in this repo's docs/workflow.
Notes on environment
- Ensure Dokploy provides
REDIS_URLin the environment for the worker container. - Provide Azure AD secrets in Dokploy environment vars:
AZURE_AD_TENANT_ID,AZURE_AD_CLIENT_ID,AZURE_AD_CLIENT_SECRET. Worker container and Dokploy settings ====================================
Build context
- Build path:
worker/(Dokploy should use this path so the worker Dockerfile is found) - Dockerfile:
worker/Dockerfile
Recommended Dokploy settings
- Provider:
Gitea - Repository:
ahmido/tenantpilot(or your repo) - Branch:
development - Build path:
worker/ - Watch paths:
worker/**,lib/**,package.json,package-lock.json
Notes
- The
Dockerfilerunsnpm ciand thennpm run worker:start, which usestsxto executeworker/index.tsdirectly. - If you prefer a smaller production image, consider adding a build step to compile TypeScript to JS and run the compiled output with
node. - If Dokploy requires a separate webhook per app, use the worker webhook URL provided in this repo's docs/workflow.