fix: enforce prefer-dist to force composer using nexus proxy

This commit is contained in:
2026-09-03 16:10:09 +07:00
parent 7169b4774a
commit 361347d312
+1 -1
View File
@@ -47,7 +47,7 @@ COPY . /var/www/html
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& composer config repo.packagist composer http://10.15.39.186:8081/repository/composer-proxy/ \ && composer config repo.packagist composer http://10.15.39.186:8081/repository/composer-proxy/ \
&& composer config secure-http false \ && composer config secure-http false \
&& composer install --no-dev --optimize-autoloader --no-interaction && composer install --prefer-dist --no-dev --optimize-autoloader --no-interaction
# Atur hak akses folder web, storage, dan cache Laravel # Atur hak akses folder web, storage, dan cache Laravel
RUN chown -R www-data:www-data /var/www/html \ RUN chown -R www-data:www-data /var/www/html \