docs(CLAUDE.md): add code style section aligned with glyphdiff conventions

This commit is contained in:
Ilia Mashkov
2026-03-06 23:03:45 +03:00
commit e2eba5ec55
44 changed files with 3686 additions and 0 deletions

31
Dockerfile Normal file
View File

@@ -0,0 +1,31 @@
FROM oven/bun:1-alpine AS base
WORKDIR /app
FROM base AS deps
COPY package.json package-lock.json* ./
RUN bun install --frozen-lockfile
FROM base AS builder
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN bun install --frozen-lockfile
RUN bun run build
FROM base AS runner
WORKDIR /app
ENV NODE_ENV production
RUN addgroup --system --gid 1001 bun
RUN adduser --system --uid 1001 bun
COPY --from=builder /app/package.json ./
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/build ./
USER bun
EXPOSE 3000
CMD ["bun", "run", "index.js"]