frankenphp icon indicating copy to clipboard operation
frankenphp copied to clipboard

Docker image quite heavy : remove build deps ?

Open husimo-tilleuls opened this issue 3 years ago • 2 comments

Hello,

It seems that Docker image is quite heavy (around 700MB).

I looked at the Dockerfile (https://github.com/dunglas/frankenphp/blob/main/Dockerfile) and it seems that $PHPIZE_DEPS are never removed where as in think they are not needed after PHP and go compilation ?

I built the image removing these deps for testing but I have a problem with composer (I'll fill an issue about that too!)

++

husimo-tilleuls avatar Oct 17 '22 10:10 husimo-tilleuls

Actually on an empty project I've been able to test it and it's working properly (I have the phpinfo).

I guess these build packages are not needed even for worker mode, are they ?

husimo-tilleuls avatar Oct 17 '22 10:10 husimo-tilleuls

Indeed! See https://github.com/dunglas/frankenphp/pull/29#issuecomment-1280549452

dunglas avatar Oct 17 '22 10:10 dunglas

Fixed by #33

dunglas avatar Oct 19 '22 05:10 dunglas