fix: install composer dependencies during kaniko build phase
This commit is contained in:
+6
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user