![]() RUN dotnet publish "DockerDemo.csproj" -c Release -o /app/publish RUN dotnet build "DockerDemo.csproj" -c Release -o /app/build RUN dotnet restore "DockerDemo/DockerDemo.csproj" FROM /dotnet/core/aspnet:2.2-stretch-slim AS baseįROM /dotnet/core/sdk:2.2-stretch AS buildĬOPY DockerDemo/DockerDemo.csproj DockerDemo/ Refer to Dockerfile reference for an understanding of the commands within it. Visual Studio for Mac will automatically add a new project to your solution called docker-compose and add a Dockerfile to your existing project.Ī Dockerfile is the recipe for creating a final Docker image. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |