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:
Till JS 2026-04-02 01:53:31 +02:00
parent 06107f6a52
commit c4b8a16740
2 changed files with 7 additions and 2 deletions

View file

@ -14,10 +14,15 @@ COPY apps/manacore/apps/web ./apps/manacore/apps/web
COPY apps/calc/packages/shared ./apps/calc/packages/shared
COPY apps/clock/packages/shared ./apps/clock/packages/shared
COPY apps/zitare/packages/content ./apps/zitare/packages/content
COPY packages/shared-uload ./packages/shared-uload
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store \
pnpm install --no-frozen-lockfile --ignore-scripts
# Build dependencies that need compilation
WORKDIR /app/apps/zitare/packages/content
RUN pnpm build
WORKDIR /app/apps/manacore/apps/web
RUN pnpm exec svelte-kit sync
RUN NODE_OPTIONS="--max-old-space-size=4096" pnpm build

View file

@ -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