Create a base image | Docker Documentation
docs.docker.com › develop › develop-imagesFor example, to create a minimal container using scratch: # syntax=docker/dockerfile:1 FROM scratch ADD hello / CMD ["/hello"] Assuming you built the “hello” executable example by using the source code at https://github.com/docker-library/hello-world , and you compiled it with the -static flag, you can build this Docker image using this docker build command: