You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging.
FROM mcr.microsoft.com/dotnet/sdk:9.0-preview AS build
WORKDIR /src
RUN git init
RUN git remote add origin https://gitee.com/dotnetchina/MoYu.git
RUN git config core.sparseCheckout true
RUN echo samples >> .git/info/sparse-checkout
RUN echo framework >> .git/info/sparse-checkout
RUN git pull --depth 1 origin v4
RUN dotnet restore "./samples/MoYu.Web.Entry/MoYu.Web.Entry.csproj"
RUN dotnet publish "./samples/MoYu.Web.Entry/MoYu.Web.Entry.csproj" -c release -o /app --no-restore