Files
datacat/infra/Dockerfile.back.dev
z3n 921a6e652b feat: initial scaffold — MVP catalogue de données d'API
- Backend NestJS : CRUD api_entries + categories, upload YAML multi-fichiers,
  génération docs AsyncAPI (@asyncapi/cli@6.0.0) et OpenAPI (redocly)
- Fix: route wildcard GET /api/apis/:id/*path pour servir les assets statiques
  (CSS/JS) générés par AsyncAPI HTML template (contournement bug path-to-regexp v8)
- Frontend Angular 19 : pages catalog, browse, api-detail, doc-viewer, upload (DSFR)
- Seeder de données de démo (idempotent)
- Docker Compose dev + Dockerfiles + manifests K8s
- Documentation : README, architecture, référence API REST

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-05-22 08:42:54 +00:00

25 lines
837 B
Docker

FROM node:22-alpine
# Install git (required by asyncapi html-template installer)
RUN apk add --no-cache git
# Install pnpm
RUN npm install -g pnpm@10.33.0
# Install AsyncAPI CLI and Redocly CLI for docs generation
RUN npm install -g @asyncapi/cli@6.0.0 @redocly/cli
# Pre-cache the AsyncAPI html-template so generation works on first startup
RUN mkdir -p /tmp/asyncapi-warmup /tmp/asyncapi-warmup/out && \
printf 'asyncapi: "3.0.0"\ninfo:\n title: Warmup\n version: "1.0.0"\nchannels: {}\n' \
> /tmp/asyncapi-warmup/spec.yaml && \
asyncapi generate fromTemplate /tmp/asyncapi-warmup/spec.yaml @asyncapi/html-template \
--output /tmp/asyncapi-warmup/out --no-interactive --install --force-write 2>&1 || true && \
rm -rf /tmp/asyncapi-warmup
WORKDIR /workspace
EXPOSE 3000
CMD ["pnpm", "run", "start:dev"]