1 Star 0 Fork 4.1K

zjtxqjj/Fur

forked from dotNET China/Furion 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 796 Bytes
一键复制 编辑 原始数据 按行查看 历史
百小僧 提交于 2020-10-28 18:34 . 🥞 update docker image.
# Author:KaneLeung(https://github.com/KaneLeung)
# Update:20201012
# NetCore SDK
# https://hub.docker.com/_/microsoft-dotnet-nightly-sdk/
FROM mcr.microsoft.com/dotnet/nightly/sdk:5.0-alpine AS build
WORKDIR /source
# Download Source
RUN git init
RUN git remote add -t main -m main origin https://gitee.com/monksoul/Fur.git
RUN git config core.sparseCheckout true
RUN echo framework >> .git/info/sparse-checkout
RUN git pull --depth 1 origin main
# Restore And Publish
WORKDIR /source/framework
RUN dotnet restore
RUN dotnet publish -c release -o /app --no-restore
# Run Fur
# https://hub.docker.com/_/microsoft-dotnet-nightly-aspnet/
FROM mcr.microsoft.com/dotnet/nightly/aspnet:5.0-alpine
WORKDIR /app
COPY --from=build /app ./
EXPOSE 80
EXPOSE 443
ENTRYPOINT ["dotnet", "Fur.Web.Entry.dll"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/zjtxqjj/Fur.git
git@gitee.com:zjtxqjj/Fur.git
zjtxqjj
Fur
Fur
main

搜索帮助