Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
FROM microsoft/dotnet:2.0-sdk
# copy csproj and restore as distinct layers
COPY . ./
RUN dotnet restore
RUN dotnet build
# copy and build everything else
RUN dotnet publish -c Release -o out
ENTRYPOINT ["dotnet", "out/dotnet-ci-sample.dll"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment