From 0c2ba7bef50956e52bd5a026f3c4b770439b5124 Mon Sep 17 00:00:00 2001 From: 4NK Dev Date: Sun, 21 Sep 2025 13:07:28 +0000 Subject: [PATCH] ci: docker_tag=ext - Fix Dockerfile to use HTTPS instead of SSH for git clone --- Dockerfile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 377b396..c5d703c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,19 +2,15 @@ FROM rust:latest AS builder WORKDIR /app -# Configuration de git pour utiliser SSH -RUN mkdir -p /root/.ssh && \ - ssh-keyscan git.4nkweb.com >> /root/.ssh/known_hosts - -# Cloner sdk_common depuis le repository (branche dev4) -RUN --mount=type=ssh git clone -b dev4 ssh://git@git.4nkweb.com/4nk/sdk_common.git /sdk_common +# Cloner sdk_common depuis le repository (branche ext) +RUN git clone -b ext https://git.4nkweb.com/4nk/sdk_common.git /sdk_common # Copie des fichiers de sdk_relay COPY Cargo.toml Cargo.lock ./ COPY src/ src/ -# Build avec support SSH pour récupérer les dépendances -RUN --mount=type=ssh cargo build --release +# Build des dépendances +RUN cargo build --release # ---- image finale ---- FROM debian:bookworm-slim