Minimal Dockerfile example
This is a minimal Dockerfile that you can use to build a test container:
FROM alpine
CMD ["/bin/sh", "-c", "echo 'It works!'"]
Build example:
docker build -t techoverflow-minimal-docker .
Run example:
docker run techoverflow-minimal-docker
Example output:
$ docker run techoverflow-minimal-docker
It works!
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow