最小 Dockerfile 示例
这是一个你可以用来构建测试容器的最小 Dockerfile:
example-4.dockerfile
CMD ["/bin/sh", "-c", "echo 'It works!'"]构建示例:
example-3.sh
运行示例:
example-2.sh
示例输出:
example-1.txt
It works!Check out similar posts by category:
Docker
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow