The only process started in the images is the Tomcat server (I don’t remember why we install the “postfix” package but we don’t start a postfix process)
In your README file, you write :
'You can start a local Postfix SMTP server by using -e LOCAL_SMTP_SERVER=true"
this’s why the Postfix package is installed.
And in your run.sh file:
“if [ “$LOCAL_SMTP_SERVER” = “true” ]
then
echo “Starting SMTP server…”
postfix start
echo “…done”
fi”
This’s how Postfix is started.
So, if Postfix is never used, could use remove Postfix from the image?
I must admit I don’t remember this… I think this was implemented for a particular customer who needed this. I will check internally if it still makes sense.
Anyway I agree this should be isolated in a specialised image for this customer and removed from the default image.