Files
Olhar/Dockerfile
T
Gato 915d3ce3a7 feat(init): initialisation du projet Angular 19 PWA — v0.0.1
- Angular 19 avec routing, SCSS, PWA (Service Worker + manifest)
- Couverture de tests ≥ 90% configurée dans karma.conf.js
- Docker pour tests isolés (Dockerfile.test + docker-compose.test.yml)
- Image de production multi-stage (Dockerfile + nginx.conf)
- Hook pre-commit bloquant si tests échouent ou couverture < 90%
- CI Gitea (.gitea/workflows/ci.yml) : tests + build/push image Docker
- Versioning SemVer depuis 0.0.1 avec scripts npm version:*
- Feature flags par environnement (src/environments/)
- Documentation fonctionnelle (docs/functional/) et technique (docs/technical/)
- CLAUDE.md avec toutes les règles de développement

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-06 18:52:08 +02:00

13 lines
294 B
Docker

FROM node:24-slim AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM nginx:alpine AS runtime
COPY --from=builder /app/dist/olhar-pwa/browser /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]