Dotnet Core 2.1 alpine Dockerfile

providing the dockerfile to build dotnet core 2.1 alpine with Nuget configuration and Jq installed.

FROM microsoft/dotnet:2.1-aspnetcore-runtime-alpine AS base
FROM microsoft/dotnet:2.1-sdk-alpine AS build
COPY NuGet.Config /root/.nuget/NuGet/NuGet.Config
RUN apk update \
&& apk add --no-cache curl \
&& apk add jq \
&& rm -rf /var/cache/apk/*

Note: You have to provide your own Nuget.config at the same level as this dockerfile and create the image using below command

docker build -t dotnet2.1-alpine Dockerfile