From 3399aabc9d7a6001da9b4353f44ce432048f9c5b Mon Sep 17 00:00:00 2001 From: LiittleCookie Date: Tue, 2 Sep 2025 19:13:40 +0000 Subject: [PATCH] Actualiser Dockerfile --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index bd7811f..94b9ef5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,14 +4,18 @@ WORKDIR /app ARG REPO_URL ARG DEPLOY_KEY_B64 +# Config SSH pour la Deploy Key RUN mkdir -p /root/.ssh && chmod 700 /root/.ssh RUN echo "$DEPLOY_KEY_B64" | base64 -d > /root/.ssh/id_rsa && chmod 600 /root/.ssh/id_rsa RUN ssh-keyscan git.ewelit.fr >> /root/.ssh/known_hosts +# Cloner le repo privé de l'app RUN git clone --depth=1 $REPO_URL . +# Installer les dépendances PHP RUN composer install --no-interaction --prefer-dist --no-progress +# Stage runtime PHP-FPM FROM php:8.4-fpm-alpine RUN apk add --no-cache icu-libs libzip git bash \