mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 13:21:08 +02:00
- 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>
18 lines
542 B
Docker
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"]
|