-
Notifications
You must be signed in to change notification settings - Fork 475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using the 8.0 image the PHP version in the container is 8.1 #314
Comments
Same issue |
Same issue here, looks like there's also a /usr/bin/php8.0 which is the correct version. Changing line 8 in the |
Looks like As I see it right now, we could add a |
Same issue. In my temporary fix I added in the Dockerfile, after line 46: This way composer will work too. |
I tried the solution of @felliper and it worked for me. Now |
Looks like php8.0-dev (required in the docker file) recommends (recommends are installed by default) pkg-php-tools which in turn depends on php-pear and in turn php-8.1-cli:
Running the following command is a workaround (but will need to be re-run anytime the container is rebuilt): Adding a "–no-install-recommends" to the apt-get on line 24 of vendor/laravel/sail/runtimes/8.0/Dockerfile might be a solution if nothing else in sail requires php-pear. |
Description:
I use the 8.0 docker image, but after rebuild with
sail build --no-cache
the php version in den container is8.1.1
(sail php -v
).The relevant lines from my
docker-compose.yml
file:I freshly published the resources with
artisan sail:publish
.Steps to Reproduce
curl -s "https://laravel.build/example-app" | bash
8.1
with8.0
indocker-compose.yml
sail build --no-cache
sail up -d
sail php -v
outputs8.1.1
The text was updated successfully, but these errors were encountered: