From dc6bb1da30ac90fc0ebafdb859d6643d820a83ca Mon Sep 17 00:00:00 2001 From: Debian Dev4 Date: Sun, 21 Sep 2025 11:42:03 +0000 Subject: [PATCH] ci: docker_tag=ext - Remove SSH dependency, use HTTPS for public repos --- Dockerfile | 9 +++------ package.json | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7b6c445a..c818aad1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,13 +5,10 @@ WORKDIR /leCoffre-front COPY package.json ./ COPY package-lock.json ./ -RUN apk update && apk add --no-cache openssh-client git +RUN apk update && apk add --no-cache git -# Forward SSH agent via BuildKit (clé jamais écrite dans l'image) -RUN --mount=type=ssh \ - --mount=type=cache,target=/root/.npm \ - mkdir -p /root/.ssh && \ - ssh-keyscan git.4nkweb.com >> /root/.ssh/known_hosts && \ +# Installation des dépendances +RUN --mount=type=cache,target=/root/.npm \ npm install --no-audit --no-fund # Configuration pour le développement diff --git a/package.json b/package.json index 453568bc..37787783 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "heroicons": "^2.1.5", "jszip": "^3.10.1", "jwt-decode": "^3.1.2", - "le-coffre-resources": "git+ssh://git@git.4nkweb.com/4nk/lecoffre-ressources.git#v2.167", + "le-coffre-resources": "git+https://git.4nkweb.com/4nk/lecoffre-ressources.git#v2.167", "next": "^14.2.3", "pdf-lib": "^1.17.1", "prettier": "^2.8.7",