Updated default Dockerfile to handle newer PHP versions #16293
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Now that our minimum PHP version is higher than it used to be, the default Docker image needs to be updated accordingly. Since it looks like we need to use a later Ubuntu version to have access to newer PHP versions, I upgraded us to the latest LTS version of Ubuntu. Then I was able to install PHP8.3.
Additionally, it seems that now Ubuntu creates an Ubuntu user as userid=1000, which we were using for our own user previously. I instead shifted the UID of our created user to 10000, which, if we were using uid 1000 just for 'visibility' should also be pretty easy to visually distinguish. I'm not sure, though, if the uid of 1000 was used anywhere else in the system, and if we were, we should definitely change it there as well.