feat: try fix ci/cd
This commit is contained in:
parent
fe7e4ae13f
commit
37ed8d5f6a
|
|
@ -5,15 +5,12 @@ FROM laravelsail/php84-composer AS build
|
||||||
|
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
|
|
||||||
# On copie d'abord les fichiers composer pour profiter du cache Docker
|
# On copie tout le projet (y compris artisan)
|
||||||
COPY composer.json composer.lock ./
|
COPY . .
|
||||||
|
|
||||||
# Installation des dépendances PHP en mode production
|
# Installation des dépendances PHP en mode production
|
||||||
RUN composer install --no-dev --no-interaction --prefer-dist --optimize-autoloader
|
RUN composer install --no-dev --no-interaction --prefer-dist --optimize-autoloader
|
||||||
|
|
||||||
# On copie le reste du projet (code Laravel, config, etc.)
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
# -----------------------------
|
# -----------------------------
|
||||||
# Étape 2 : image runtime
|
# Étape 2 : image runtime
|
||||||
# -----------------------------
|
# -----------------------------
|
||||||
|
|
@ -21,7 +18,7 @@ FROM laravelsail/php84-composer
|
||||||
|
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
|
|
||||||
# On récupère tout ce qui a été préparé dans l'étape build
|
# On récupère tout ce qui a été préparé dans l’étape build
|
||||||
COPY --from=build /var/www/html /var/www/html
|
COPY --from=build /var/www/html /var/www/html
|
||||||
|
|
||||||
# On désactive l'ENTRYPOINT par défaut de l'image de base
|
# On désactive l'ENTRYPOINT par défaut de l'image de base
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue