fix: install composer dependencies during kaniko build phase

This commit is contained in:
2026-09-03 15:03:40 +07:00
parent 1fc210ccd3
commit e323647b40
+6 -2
View File
@@ -43,8 +43,12 @@ WORKDIR /var/www/html
# Salin source code aplikasi
COPY . /var/www/html
# Atur hak akses folder storage dan cache Laravel
RUN chown -R www-data:www-data /var/www/html/storage /var/www/html/bootstrap/cache \
# Install Composer dan dependensi Laravel
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& composer install --no-dev --optimize-autoloader --no-interaction
# Atur hak akses folder web, storage, dan cache Laravel
RUN chown -R www-data:www-data /var/www/html \
&& chmod -R 775 /var/www/html/storage /var/www/html/bootstrap/cache
# Konfigurasi Nginx