1 Star 0 Fork 11

xiaocainiao789/MoYu

forked from DotNet-MoYu/MoYu 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 804 Bytes
一键复制 编辑 原始数据 按行查看 历史
#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
FROM mcr.microsoft.com/dotnet/aspnet:8.0
WORKDIR /app
COPY --from=build /app ./
EXPOSE 8080
EXPOSE 8081
ENTRYPOINT ["dotnet", "MoYu.Web.Entry.dll"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/xiaocainiao789/MoYu.git
git@gitee.com:xiaocainiao789/MoYu.git
xiaocainiao789
MoYu
MoYu
master

搜索帮助