Which instruction is best for downloading dependencies during image build?

  1. COPY
  2. ADD
  3. RUN curl
  4. RUN
Correct answer RUN

Explanation

`RUN` is used to execute commands like `apt-get`, `curl`, or `npm install` during image build.

Update: Admin added a tag on this question

Topics

By Admin · · 35 views