fix(worker): update Dockerfile and README - build path must be / (repo root)
All checks were successful
Trigger Cloudarix Deploy / call-webhook (push) Successful in 1s

This commit is contained in:
Ahmed Darrazi 2025-12-09 12:53:02 +01:00
parent 4c6b6613ae
commit cd2abed1ab
2 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,6 @@
### Multi-stage build: compile TypeScript in a builder image, produce a smaller runtime image ### Multi-stage build: compile TypeScript in a builder image, produce a smaller runtime image
### IMPORTANT: Set Dokploy build path to "/" (repo root), NOT "worker/"
### Dockerfile path should be "worker/Dockerfile"
FROM node:20 AS builder FROM node:20 AS builder
WORKDIR /usr/src/app WORKDIR /usr/src/app

View File

@ -3,8 +3,10 @@ Worker container and Dokploy settings
Build context Build context
------------- -------------
- Build path: `worker/` (Dokploy should use this path so the worker Dockerfile is found) - **Build path: `/` (repo root)** — NOT `worker/`!
- Dockerfile: `worker/Dockerfile` - **Dockerfile path: `worker/Dockerfile`**
**IMPORTANT**: Dokploy must build from the repo root (`/`) so the Dockerfile can access `package.json`, `lib/`, and other files. If build path is set to `worker/`, the build will fail with "package.json: not found".
Two-stage build (recommended) Two-stage build (recommended)
----------------------------- -----------------------------
@ -16,7 +18,8 @@ Recommended Dokploy settings
- Provider: `Gitea` - Provider: `Gitea`
- Repository: `ahmido/tenantpilot` (or your repo) - Repository: `ahmido/tenantpilot` (or your repo)
- Branch: `development` - Branch: `development`
- Build path: `worker/` - **Build path: `/`** (repo root)
- **Dockerfile path: `worker/Dockerfile`**
- Watch paths: `worker/**`, `lib/**`, `package.json`, `package-lock.json` - Watch paths: `worker/**`, `lib/**`, `package.json`, `package-lock.json`
Notes Notes