Docker and CI/CD · Middle · Question 10 of 75

How do you use an npm token during a build without leaving it in the image?

Explanation

Build secrets are available only during that RUN and never written to a layer. ARG values and copied files end up in the image history.

Further reading

Problem with a question

Docker and CI/CD · Middle · question 10

Test yourself

Take the Docker and CI/CD · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz