managarten/services/mana-media/apps/api/Dockerfile
Till JS df19d3acc4 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>
2026-03-30 21:31:52 +02:00

18 lines
542 B
Docker

FROM oven/bun:1 AS production
WORKDIR /app
COPY package.json bun.lock* ./
COPY src ./src
# 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
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:3015/health || exit 1
USER bun
CMD ["bun", "run", "src/index.ts"]