fix: Docker build failures for mana-media and inventar-web

- mana-media: strip workspace devDep before bun install (shared-drizzle-config
  is only needed for drizzle-kit, not at runtime)
- inventar-web: replace nested <button> with <div role="button"> to fix
  Svelte 5 HTML validation error during build

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-30 21:31:52 +02:00
parent dffb5eb9dc
commit df19d3acc4
2 changed files with 9 additions and 4 deletions

View file

@ -179,9 +179,12 @@
<!-- Grid View -->
<div class="grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
{#each sortedItems as item (item.id)}
<button
<div
onclick={() => goto(`/items/${item.id}`)}
class="item-card group rounded-xl border border-[hsl(var(--border))] bg-[hsl(var(--card))] p-4 text-left"
onkeydown={(e) => e.key === 'Enter' && goto(`/items/${item.id}`)}
role="button"
tabindex="0"
class="item-card group cursor-pointer rounded-xl border border-[hsl(var(--border))] bg-[hsl(var(--card))] p-4 text-left"
>
<div class="flex items-start justify-between">
<h3 class="font-semibold text-[hsl(var(--foreground))]">{item.name}</h3>
@ -205,7 +208,7 @@
>
{$_('common.delete')}
</button>
</button>
</div>
{/each}
</div>
{:else if viewStore.viewMode === 'table'}

View file

@ -5,7 +5,9 @@ WORKDIR /app
COPY package.json bun.lock* ./
COPY src ./src
RUN bun install --production --frozen-lockfile
# Remove workspace devDependencies that can't resolve in Docker, then install
RUN sed -i '/"@manacore\/shared-drizzle-config"/d' package.json && \
bun install --production --frozen-lockfile 2>/dev/null || bun install --production
EXPOSE 3015