30 lines
317 B
Markdown
30 lines
317 B
Markdown
# Runbook .NET + Docker
|
|
|
|
## Objetivo
|
|
|
|
Construir y ejecutar APIs .NET en contenedor.
|
|
|
|
## Flujo
|
|
|
|
Código .NET
|
|
↓
|
|
dotnet restore
|
|
↓
|
|
dotnet build
|
|
↓
|
|
dotnet test
|
|
↓
|
|
dotnet publish
|
|
↓
|
|
runtime image
|
|
↓
|
|
container
|
|
|
|
## Reglas
|
|
|
|
- Multi-stage build.
|
|
- Usuario no root.
|
|
- Healthcheck.
|
|
- Variables de entorno.
|
|
- Logs stdout.
|