feat: commit vendor folder directly to bypass air-gapped build restrictions
This commit is contained in:
+7
-7
@@ -40,18 +40,18 @@ RUN echo "deb [trusted=yes] http://10.15.39.186:8081/repository/debian-proxy/ bu
|
||||
|
||||
WORKDIR /var/www/html
|
||||
|
||||
# Salin source code aplikasi
|
||||
# Salin source code aplikasi (Pastikan folder 'vendor' ikut tersalin ke sini)
|
||||
COPY . /var/www/html
|
||||
|
||||
# Install Composer dan arahkan Packagist ke Nexus
|
||||
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 secure-http false \
|
||||
&& composer install --prefer-dist --no-dev --optimize-autoloader --no-interaction
|
||||
# =========================================================
|
||||
# PERHATIAN: Blok 'RUN composer install' DIHAPUS.
|
||||
# Pastikan folder vendor/ sudah di-commit ke Git!
|
||||
# =========================================================
|
||||
|
||||
# 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
|
||||
&& chmod -R 775 /var/www/html/storage \
|
||||
&& chmod -R 775 /var/www/html/bootstrap/cache
|
||||
|
||||
# Konfigurasi Nginx
|
||||
RUN echo 'server { \
|
||||
|
||||
Reference in New Issue
Block a user