mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 20:21:09 +02:00
fix(manacore/web): fix Docker build and healthchecks
Add missing shared-uload package copy and zitare content build step to Dockerfile. Replace wget/httpx healthchecks with bun fetch and stdlib urllib to remove external dependencies in containers. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
06107f6a52
commit
c4b8a16740
2 changed files with 7 additions and 2 deletions
|
|
@ -620,7 +620,7 @@ services:
|
|||
ports:
|
||||
- "3011:3011"
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3011/health"]
|
||||
test: ["CMD", "bun", "-e", "fetch('http://127.0.0.1:3011/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
|
||||
interval: 120s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
|
@ -1083,7 +1083,7 @@ services:
|
|||
ports:
|
||||
- "3025:3025"
|
||||
healthcheck:
|
||||
test: ["CMD", "python", "-c", "import httpx; httpx.get('http://localhost:3025/health').raise_for_status()"]
|
||||
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:3025/health')"]
|
||||
interval: 120s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue