You don't have to change anything in your application images to make them smaller! 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.
build command to minify your container image and to generate security profiles.xray command to understand your container images before and after you optimize.debug command to debug your slim container images.Simple example using the containerized version of slim to minify an nginx container image: docker run -it -v /var/run/docker.sock:/var/run/docker.sock dslim/slim build nginx
To learn more about running slim containerized see https://github.com/slimtoolkit/slim#running-containerized
Content type
Image
Digest
sha256:27859c6a5…
Size
18.4 MB
Last updated
over 2 years ago
docker pull dslim/slim