...

/

Creating an Image Including Files

Creating an Image Including Files

In this lesson, you are going to learn how to include an HTML file in an image.

We'll cover the following...

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


Access this course and 1400+ top-rated courses and projects.