1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Docker

Connected

Exercise

Editing a Dockerfile

Let's get familiar with the RUN instruction. We've created a Dockerfile for you. You can look at its content using cat Dockerfile or using nano. Like before, the Dockerfile already has a FROM instruction, but you'll be adding a RUN command this time.

Instructions 1/2

undefined XP
  • 1
    • Add the correct instruction to the end of the Dockerfile so that the mkdir my_app shell command is run when building the Dockerfile.
  • 2
    • Using the terminal, run the command to build an image called my_app from the Dockerfile in your current working directory.