From d7a8318dda3c1def2c6dffccdfb269313ceea01f Mon Sep 17 00:00:00 2001 From: pyriec Date: Fri, 11 Sep 2026 10:20:38 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20du=20workflow=20Docker?= =?UTF-8?q?=20et=20du=20Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Ajout de la gestion du cache pour la construction de l'image Docker. - Correction de l'installation de Playwright pour utiliser uniquement chromium-headless-shell. --- .gitea/workflows/docker-build.yml | 4 +++- Dockerfile | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/docker-build.yml b/.gitea/workflows/docker-build.yml index 60f42cd..3d2aad7 100644 --- a/.gitea/workflows/docker-build.yml +++ b/.gitea/workflows/docker-build.yml @@ -55,4 +55,6 @@ jobs: file: ./Dockerfile push: true tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + labels: ${{ steps.meta.outputs.labels }} + cache-from: type=registry,ref=${{ steps.prep.outputs.registry }}/${{ steps.prep.outputs.repo_lower }}:buildcache + cache-to: type=registry,ref=${{ steps.prep.outputs.registry }}/${{ steps.prep.outputs.repo_lower }}:buildcache,mode=max \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 554d477..48f388b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt -RUN python -m playwright install --with-deps chromium +# Seulement chromium-headless-shell, pas le Chrome complet +RUN python -m playwright install --with-deps chromium-headless-shell COPY . .