4/17/2023 0 Comments Docker on mac without desktopThe 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" 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. The docker client is used on the command line to connect to the installed Docker provider (Colima or Docker Desktop for Mac, in this context). 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 |