mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-16 23:19:40 +02:00
Replace NestJS framework with Hono + Bun, eliminating the last NestJS service from the stack. All business logic preserved: - CAS upload with SHA-256 dedup - BullMQ image processing (Sharp thumbnails/variants) - Matrix MXC URL import - EXIF extraction - File streaming/transforms - Prometheus metrics 23 NestJS files → 12 Hono files. Zero NestJS in the monorepo. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
16 lines
355 B
Docker
16 lines
355 B
Docker
FROM oven/bun:1 AS production
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json bun.lock* ./
|
|
COPY src ./src
|
|
|
|
RUN bun install --production --frozen-lockfile
|
|
|
|
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"]
|