Merge pull request 'fix(docs-portal): instalar git en la imagen de build para mkdocs-git-revision-date-localized-plugin' (#16) from fix/docs-portal-dockerfile-git-binario into main
Build and Push Docs Portal / Construir y publicar Docs Portal (push) Failing after 9m50s
Build and Push Docs Portal / Construir y publicar Docs Portal (push) Failing after 9m50s
This commit was merged in pull request #16.
This commit is contained in:
@@ -3,6 +3,14 @@ FROM python:3.12-slim AS build
|
||||
|
||||
WORKDIR /site
|
||||
|
||||
# mkdocs-git-revision-date-localized-plugin depende de GitPython, que
|
||||
# necesita el binario git presente solo para poder importarse (si falta,
|
||||
# el import truena y rompe el build --strict, incluso con
|
||||
# fallback_to_build_date activado en mkdocs.yml).
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends git \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user