Commit 5c22f196 by shameelaz

commit entrypoint

parent cdf0f598
......@@ -37,9 +37,6 @@ COPY --from=composer:2.2 /usr/bin/composer /usr/bin/composer
# Copy existing application directory
COPY . /var/www/html
# Install Laravel dependencies during build
RUN COMPOSER_MEMORY_LIMIT=-1 composer install --no-interaction --optimize-autoloader --no-scripts --ignore-platform-reqs
# Set permissions
RUN chown -R www-data:www-data /var/www/html/storage /var/www/html/bootstrap/cache
......
......@@ -7,6 +7,12 @@ find . -type f -exec chmod 664 {} \;
chown -R www-data:www-data storage bootstrap/cache
chmod -R 775 storage bootstrap/cache
# Composer install
if [ ! -d "vendor" ]; then
echo "Installing Composer dependencies..."
COMPOSER_MEMORY_LIMIT=-1 composer install --no-interaction --prefer-dist
fi
# Ensure symlinks exist
php artisan storage:link
php artisan laravolt:link-assets
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment