Building Optimized Docker Images with ASP.NET Core

If you’re exploring docker, you’ll often see dockerfiles that demonstrate the simplicity of building a docker image by copying your source into a container and voila, you have a docker image with the environment packaged with your app. FROM microsoft/dotnet WORKDIR /app ENV ASPNETCORE_URLS http://+:80 EXPOSE 80 COPY . . RUN dotnet restore ENTRYPOINT [“dotnet”, “run”] While…

27

Running Scripts in a Docker Container from Windows- CR or CRLF

For Ignite 2016, I’m building out a demo for building your .NET Core code in a container. This is part of our story behind building optimized images. But, before I get to that post, what started out as something simple, something I’ve done on my Mac fairly easily turned into a frustrating experience from Windows. It…

0