Creating an Image Including Files
In this lesson, you are going to learn how to include an HTML file in an image.
The image we just created in the previous lesson didn’t need anything other than what the base image already contained, which is why our Dockerfile file was so simple. In a real-world scenario, however, I’m very likely to want files to be part of an image I create.
Suppose I have a file named index.html on my disk with the following contents:
index.html
Get hands-on with 1200+ tech skills courses.