wyveo / nginx-php-fpm

Nginx + PHP-FPM 8.2.x / 8.1.x / 8.0.x / 7.4.x / 7.3.x / 7.2.x / 7.1.x / 7.0.x + Composer built on Debian (Bullseye/Buster) image
https://hub.docker.com/r/wyveo/nginx-php-fpm
MIT License
343 stars 248 forks source link

Optimize dockerfile #2

Closed eriweb closed 6 years ago

eriweb commented 6 years ago

This is an attempt to optimize the dockerfile by doing as many run commands in the same invocation.

This should save some layers

Before: Size: 514MB Layers: 16 (or so)

After: Size: 494MB Layers: 6