RajithaKumara / orangehrm-os-prod-environment

GNU General Public License v3.0
0 stars 0 forks source link

Remove package manager libs which are only need while build #4

Open RajithaKumara opened 5 years ago

RajithaKumara commented 5 years ago

I use below code snippets to remove unnessary packages, but those packages need while building image. This will reduce image size ~20MB in Debian based images. Is this okay?

1). Debian based images Reference: [1], [2] Findings:

https://github.com/RajithaKumara/orangehrm-os-prod-environment/blob/cd036ea17debcb478d2564d98b595842d696858d/apache/Dockerfile#L34-L46

2). Alpine based image Reference: [3] https://github.com/RajithaKumara/orangehrm-os-prod-environment/blob/cd036ea17debcb478d2564d98b595842d696858d/fpm-alpine/Dockerfile#L33-L40