This commit is contained in:
parent
a23a70c64a
commit
d173f18c2c
@ -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"]
|
||||||
|
|
||||||
|
|
||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user