1 Star 1 Fork 4.1K

马兴刚/Furion

forked from dotNET China/Furion 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 904 Bytes
一键复制 编辑 原始数据 按行查看 历史
百小僧 提交于 2021-07-20 11:08 . 😫 更新 Dockerfile 格式
# Author:KaneLeung(https://github.com/KaneLeung)
# Update:2021.03.15
# .NET5 SDK Docker
# https://hub.docker.com/_/microsoft-dotnet-sdk
FROM mcr.microsoft.com/dotnet/sdk:5.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 5 Docker
# https://hub.docker.com/_/microsoft-dotnet-aspnet/
FROM mcr.microsoft.com/dotnet/aspnet:5.0-alpine
WORKDIR /app
COPY --from=build /app ./
EXPOSE 80
EXPOSE 443
ENTRYPOINT ["dotnet", "Furion.Web.Entry.dll"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/xiaoma_m/Furion.git
[email protected]:xiaoma_m/Furion.git
xiaoma_m
Furion
Furion
master

搜索帮助