1 Star 0 Fork 4.1K

Mr'hu / Furion

forked from dotNET China / Furion 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 816 Bytes
一键复制 编辑 原始数据 按行查看 历史
百小僧 提交于 2024-02-22 11:49 . 😊 更新项目 Dockerfile
#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/Furion.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/Furion.Web.Entry/Furion.Web.Entry.csproj"
RUN dotnet publish "./samples/Furion.Web.Entry/Furion.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", "Furion.Web.Entry.dll"]
C#
1
https://gitee.com/hgflydream/Furion.git
git@gitee.com:hgflydream/Furion.git
hgflydream
Furion
Furion
v4

搜索帮助

53164aa7 5694891 3bd8fe86 5694891