Using the basic Dockerfile syntax it is quite easy to create a fully functional Docker image. But if you just start adding commands to the Dockerfile the resulting image will become bigger and bigger. A few basic actions can reduce your image size significantly.