Always keep your base images up-to-date so that all the present vulnerabilities and bugs will be fixed in the latest release. Never ever store secrets in Dockerfile. Developers may sometimes leave the AWS Secret key and access Key, API, or other secrets inside images. If the attackers were to grab…