Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,16 @@

# Installer les vendors d'abord (cache des couches inchangées) puis le code.
COPY --link composer.* symfony.* ./
RUN composer install --no-cache --prefer-dist --no-dev --no-autoloader --no-scripts --no-progress
# Retry : codeload.github.com renvoie par vagues des HTTP 400 intermittents
# (réseau, pas un incident GitHub) ; composer abandonne au 1er échec car le
# fallback source est désactivé. Cinq tentatives espacées suffisent à franchir
# une mauvaise fenĂȘtre et fiabilisent le build (donc le push-to-deploy).
RUN for i in 1 2 3 4 5; do \
composer install --no-cache --prefer-dist --no-dev --no-autoloader --no-scripts --no-progress && exit 0; \
echo "composer install : échec, nouvelle tentative ${i}/5
" >&2; \
sleep 5; \
done; \
echo "composer install : Ă©chec aprĂšs 5 tentatives — abandon." >&2; exit 1

COPY --link . ./
# Assets compilés depuis le stage Node (entrypoints.json lu par pentatrion/vite-bundle).
Expand Down Expand Up @@ -179,7 +188,7 @@
# var/cache reste root + lecture seule (cache chaud baké, immuable par design).
# Le service `app` (read-only) reçoit var/share, /data et /config en tmpfs
# inscriptibles (mode=1777) — cf. compose.prod.yaml.
RUN chown -R www-data:www-data var/log var/share

Check failure on line 191 in Dockerfile

View workflow job for this annotation

GitHub Actions / Lint

DL3059 info: Multiple consecutive `RUN` instructions. Consider consolidation.

Check failure on line 191 in Dockerfile

View workflow job for this annotation

GitHub Actions / Lint

DL3059 info: Multiple consecutive `RUN` instructions. Consider consolidation.

USER www-data

Expand Down
Loading