1 Star 0 Fork 4.1K

虹光/Furion

forked from dotNET China/Furion 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
Dockerfile 904 Bytes
Copy Edit Raw Blame History
# Author:KaneLeung(https://github.com/KaneLeung)
# Update:2023.02.28
# .NET7 SDK Docker
# https://hub.docker.com/_/microsoft-dotnet-sdk
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
WORKDIR /source
# Download source
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
# Add Furion framework, if you use the NuGet package, you can delete it.
RUN echo framework >> .git/info/sparse-checkout
RUN git pull --depth 1 origin master
# Restore and Publish
WORKDIR /source/samples
RUN dotnet restore
RUN dotnet publish -c release -o /app --no-restore
# Run Furion
# ASP.NET 7 Docker
# https://hub.docker.com/_/microsoft-dotnet-aspnet/
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine
WORKDIR /app
COPY --from=build /app ./
EXPOSE 80
EXPOSE 443
ENTRYPOINT ["dotnet", "Furion.Web.Entry.dll"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/panhongguang94/Furion.git
git@gitee.com:panhongguang94/Furion.git
panhongguang94
Furion
Furion
v4

Search