Building an ASPNetCore Image Docker (dev)
DockerFile FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build WORKDIR /app ARG BUILD_CONFIGURATION=Debug ENV ASPNETCORE_ENVIRONMENT=Development ENV DOTNET_USE_POLLING_FILE_WATCHER=true ENV ASPNETCORE_URLS=http://+:80 EXPOSE 80 CMD [ “/bin/bash”, “-c”, “dotnet restore && dotnet watch run –urls http://0.0.0.0:80” ] Build Image docker build -t myFirstApp:1.0-dev . Run Image docker run -p 8059:5000 -v ${pwd}:/app -w /app [Image]