Using scratch as a base for a Docker Container

Roll out your images from scratch. Don’t depend on anyone on the internet ever, the second they stop maintaining your project you lose your work. Also, building from scratch you can keep your images small.

There is an empty TAR file on Docker Hub named scratch; you can use it in the FROM section of your Dockerfile.

We’ll use Alpine Linux as the base OS.

To download a copy, just select the appropriate download from the downloads page, which can be found…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store