Category : azure-artifacts

Net core project. I have some nuget packages in azure artifact. In Dockerfile I am trying to consume them as below. FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build WORKDIR /app ENV ASPNETCORE_URLS=http://+:80 EXPOSE 80 # The Personal Access Token arg ARG PAT # Set environment variables ENV NUGET_CREDENTIALPROVIDER_SESSIONTOKENCACHE_ENABLED true ENV VSS_NUGET_EXTERNAL_FEED_ENDPOINTS ‘{"endpointCredentials":[{"endpoint":"https://myorg.pkgs.visualstudio.com/1234-c281-4ddc-952e-83e5a37a1c66/_packaging/mybusiness/nuget/v3/index.json","username":"USERNAME","password":"’${PAT}’"}]}’ # Get and install the Artifact ..

Read more

I have found a few articles, and posts on this forum, relating to the issue of an Azure private artifact feeds not able to be authorized when building an image with the Docker build task in Azure, which is understandable. So, I have put together a Dockerfile that mirrors the online examples: FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS ..

Read more

Can some one please provide what is the recommended solution for authenticating inside Dockerfile during docker build phase for Azure Artifacts for Maven, NPM or Python? While most of the solutions for the particular problem of accessing authenticated feed of Azure Artifacts while building from inside a Dockerfile has been mentioned on Stack Overflow or ..

Read more