Authenticate npm private registry in docker

We’re publishing scoped js packages to a private registry (managed by us using Verdaccio).

It means that in our production environment, we need to authenticate to our private registry to use yarn install. What’s the easiest way to do it ?

Source: Docker Questions

LEAVE A COMMENT