1 Star 0 Fork 99

DegradedJun/Caviar-Blazor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
北音执念~ 提交于 2022-04-07 15:48 . docker file
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
WORKDIR /app
EXPOSE 5215
EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["demo/hybrid/Caviar.Demo.Hybrid/Caviar.Demo.Hybrid.csproj", "demo/hybrid/Caviar.Demo.Hybrid/"]
COPY ["demo/hybrid/Caviar.Demo.Wasm/Caviar.Demo.Wasm.csproj", "demo/hybrid/Caviar.Demo.Wasm/"]
COPY ["src/Caviar.SharedKernel/Caviar.SharedKernel.csproj", "src/Caviar.SharedKernel/"]
COPY ["src/Caviar.AntDesignUI/Caviar.AntDesignUI.csproj", "src/Caviar.AntDesignUI/"]
COPY ["src/Caviar.Infrastructure/Caviar.Infrastructure.csproj", "src/Caviar.Infrastructure/"]
COPY ["src/Caviar.Core/Caviar.Core.csproj", "src/Caviar.Core/"]
RUN dotnet restore "demo/hybrid/Caviar.Demo.Hybrid/Caviar.Demo.Hybrid.csproj"
COPY . .
WORKDIR "/src/demo/hybrid/Caviar.Demo.Hybrid"
RUN dotnet build "Caviar.Demo.Hybrid.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "Caviar.Demo.Hybrid.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "Caviar.Demo.Hybrid.dll"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/hejiajun107/caviar.git
git@gitee.com:hejiajun107/caviar.git
hejiajun107
caviar
Caviar-Blazor
master

搜索帮助