FROM justintime50/nginx-php:8.1-11

COPY --chown=www-data:www-data ./src /var/www/html

RUN composer install --no-ansi --no-interaction --no-scripts --no-plugins --no-progress --prefer-dist \
    # Setup Laravel
    && chmod -R 755 storage bootstrap/cache \
    && php artisan storage:link \
    && php artisan optimize:clear
