You can also customize the Dockerfile itself, that can be found here: Docker
You would need to copy all of those lines over, and then change line 12 to PHP 7.4.33.
Line 13 should be changed to 7.4.33.
The hash on line 14 would need to be 924846abf93bc613815c55dd3f5809377813ac62a9ec4eb3778675b82a27b927.
Make sure this is in an empty folder, and run the command “docker build”, which should create the image you can then use to create a container with that uses PHP 7.4 instead.
Thanks for this solution. I tried this, but the file add from the first line obviously can’t be done, as this references another build stage(?). How did you manage to successfully build the new version? Or from which image did you build this?
Hey @creyD. IIRC it didn’t work for me either. I ended up spinning up a local web server on a linux machine, installing v4 on it and running the migrate script. I may even have used an era-appropriate linux liveimage, although I’m not so sure now.
Thanks for your input and quick reply! I wanted to dockerize an existing 4.5 installation, but as the docker image doesn’t work I will advise internally that we switch to 5.0 to avoid the failing docker build.