Closed burasuk closed 6 months ago
serversideup/php:8.2-fpm-nginx
No response
When i run docker compose up i have error:
docker compose up
PHP Fatal error: Uncaught Error: Failed opening required '/var/www/html/vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/html/artisan:18 which suggest that composer install don't run. Vendor folder not axists.
PHP Fatal error: Uncaught Error: Failed opening required '/var/www/html/vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/html/artisan:18
docker compose up should run container properly and the application should be available
docker compose file (simplify):
services: php: build: context: . dockerfile: Dockerfile volumes: - .:/var/www/html/
Dockerfile
FROM serversideup/php:8.2-fpm-nginx COPY --chown=www-data:www-data . /var/www/html RUN composer install --no-dev --ignore-platform-reqs --optimize-autoloader --prefer-dist --no-ansi --no-interaction --no-progress --no-scripts
WSL
20.10.14
Use the beta images. Sorry for the confusion!
Affected Docker Images
serversideup/php:8.2-fpm-nginx
Docker Labels of the affected images
No response
Current Behavior
When i run
docker compose up
i have error:PHP Fatal error: Uncaught Error: Failed opening required '/var/www/html/vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/html/artisan:18
which suggest that composer install don't run. Vendor folder not axists.Expected Behavior
docker compose up should run container properly and the application should be available
Steps To Reproduce
docker compose file (simplify):
Dockerfile
Host Operating System
WSL
Docker Version
Anything else?
No response