Agrega lo que faltaba para desplegar workloads/docs-portal/ (ya existente sin commitear): deployment/service/ingress + kustomization siguiendo el patrón de workloads/nginx, Applications de workload y gobernanza separadas, y el workflow de Gitea Actions (build+push a Gitea Registry, bump de versión en el manifiesto) siguiendo el mismo patrón que build.yaml/build-medusa.yaml.
22 lines
524 B
Docker
22 lines
524 B
Docker
# --- Stage 1: build del sitio estático con MkDocs Material ---
|
|
FROM python:3.12-slim AS build
|
|
|
|
WORKDIR /site
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY mkdocs.yml .
|
|
COPY docs/ docs/
|
|
|
|
# --strict: cualquier link roto o warning de nav rompe el build,
|
|
# para no publicar nunca un sitio con referencias muertas.
|
|
RUN mkdocs build --strict
|
|
|
|
# --- Stage 2: sirve el sitio estático generado con nginx ---
|
|
FROM nginx:1.27-alpine
|
|
|
|
COPY --from=build /site/site /usr/share/nginx/html
|
|
|
|
EXPOSE 80
|