Using the Ubuntu Docker image
Blog post from Octopus Deploy
Ubuntu's Docker image is the most downloaded on Docker Hub, with over a billion downloads, serving as a reliable base for creating custom Docker images. The text explains how to optimize these base images by using Ubuntu's Long Term Support (LTS) releases for stability and security, disabling suggested and recommended dependencies to reduce image size, and installing additional packages non-interactively to avoid errors. It highlights best practices such as setting the DEBIAN_FRONTEND environment variable to noninteractive during installations, cleaning up package lists to maintain a lean image, and creating non-root users for enhanced security. By adopting these tweaks, developers can create smaller, more secure Docker images for their applications, while also being encouraged to explore other popular container images and deployment tools like Octopus Workflow Builder for further enhancing their DevOps practices.