![]() ![]() ![]() The preceding Dockerfile is based on the microsoft/aspnetcore image, and includes instructions for modifying the base image by building your project and adding it to the container. 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" Click the X on the app you want to delete. If it doesn't show up, try using Finder to delete it. If you don't see the app, try typing its name into the search field to see if it's on another screen. After a few seconds, the icons will begin to jiggle. FROM /dotnet/core/aspnet:2.2-stretch-slim AS baseįROM /dotnet/core/sdk:2.2-stretch AS buildĬOPY DockerDemo/DockerDemo.csproj DockerDemo/ Click and hold the app you want to delete. ![]() 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 |