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
All checks were successful
Trigger Cloudarix Deploy / call-webhook (push) Successful in 1s
This commit is contained in:
parent
4c6b6613ae
commit
cd2abed1ab
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user