Commit 205e7209 authored by Mahmoud Aglan's avatar Mahmoud Aglan

Fix: fallback to source install if dist download fails

Handles transient GitHub CDN 400 errors during Docker build.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent c5c72141
...@@ -28,7 +28,12 @@ RUN composer install \ ...@@ -28,7 +28,12 @@ RUN composer install \
--no-interaction \ --no-interaction \
--no-scripts \ --no-scripts \
--no-autoloader \ --no-autoloader \
--prefer-dist --prefer-dist || composer install \
--no-dev \
--no-interaction \
--no-scripts \
--no-autoloader \
--prefer-source
COPY . . COPY . .
RUN composer dump-autoload --optimize --no-dev RUN composer dump-autoload --optimize --no-dev
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment