Dockerfile Azure Devops Artifact

  .npmrc, angular, azure-devops, dockerfile, registry

I have a project that contains private libraries available on Azure Devops. I have a Dockerfile in place to build my project

When the npm install command starts I get the following error:

400 Bad Request – GET https://myOrganisation.pkgs.visualstudio.com/myproject/_packaging/myFeed/npm/registry/:_authToken=[TOKEN_BAASE_64]/@project%2fmy-lib

My .npmrc file :
unsafe-perm=true
package-lock=false
@project:registry=https://myOrganisation.pkgs.visualstudio.com/myproject/_packaging/myFeed/npm/registry/:_authToken=${NPM_TOKEN}
always-auth=true

Source: Dockerfile Questions

LEAVE A COMMENT