Optimizing images is one of many DockerSlim capabilities. Minifying with DockerSlim doesn't require you to change anything in your image! Keep doing what you are doing. Use the base image you want. Use the package manager you want. Don't worry about hand optimizing your Dockerfile. Don't worry about manually creating Seccomp and AppArmor security profiles.
To understand your container image before and after you optimize it use the
xray command in DockerSlim or the Slim.AI SaaS where you can get even more powerful insights including how your container image changed.
For more details about DockerSlim see the Github page.