Skip to content

Instantly share code, notes, and snippets.

View Dannieib's full-sized avatar

Daniel Ibanga Dannieib

View GitHub Profile
@Dannieib
Dannieib / Dockerfile
Created October 16, 2022 23:50 — forked from shanselman/Dockerfile
Smarter ASP.NET Core Docker File
FROM microsoft/dotnet:2.0-sdk as builder
RUN mkdir -p /root/src/app/aspnetcoreapp
WORKDIR /root/src/app/aspnetcoreapp
#copy just the project file over
# this prevents additional extraneous restores
# and allows us to resuse the intermediate layer
# This only happens again if we change the csproj.
# This means WAY faster builds!