Skip to content

Instantly share code, notes, and snippets.

View jonas-lomholdt's full-sized avatar
🚢

Jonas Lomholdt jonas-lomholdt

🚢
View GitHub Profile
@jonas-lomholdt
jonas-lomholdt / Dockerfile
Created July 28, 2021 07:31 — forked from shubham90/Dockerfile
Dotnet restore in docker build with private Azure artifacts feed(dotnet sdk >2.1.500 )
# downloading the dotnet sdk image. Could be any docker sdk image with sdk > 2.1.500
FROM microsoft/dotnet:2.1-sdk AS dotnet-builder
ARG FEED_URL
ARG PAT
# download and install latest credential provider. Not required after https://github.com/dotnet/dotnet-docker/issues/878
RUN wget -qO- https://raw.githubusercontent.com/Microsoft/artifacts-credprovider/master/helpers/installcredprovider.sh | bash
#Optional
WORKDIR /workdir