oks
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Triono Putra 2025-06-05 07:30:09 +07:00
parent a23a70c64a
commit d173f18c2c
2 changed files with 8 additions and 6 deletions

View File

@ -27,14 +27,13 @@ COPY . .
# Install Laravel dependencies # Install Laravel dependencies
RUN composer install --no-interaction --prefer-dist --optimize-autoloader RUN composer install --no-interaction --prefer-dist --optimize-autoloader
# Create storage folders (in case they don't exist) # Buat folder cache jika belum ada
RUN mkdir -p storage/framework/{cache,sessions,views} bootstrap/cache RUN mkdir -p storage/framework/{cache,sessions,views} bootstrap/cache
# Copy entrypoint
COPY entrypoint.sh /entrypoint.sh COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh
EXPOSE 9000 EXPOSE 9000
ENTRYPOINT ["/entrypoint.sh"] ENTRYPOINT ["/entrypoint.sh"]

View File

@ -9,6 +9,9 @@ fi
chown -R www-data:www-data /var/www chown -R www-data:www-data /var/www
chmod -R 775 /var/www/storage /var/www/bootstrap/cache chmod -R 775 /var/www/storage /var/www/bootstrap/cache
chown -R www-data:www-data /var/www/storage /var/www/bootstrap/cache chown -R www-data:www-data /var/www/storage /var/www/bootstrap/cache
php artisan key:generate
# Generate app key (pakai --force agar tidak gagal di production)
php artisan key:generate --force
# Jalankan php-fpm # Jalankan php-fpm
exec php-fpm exec php-fpm