1 Star 0 Fork 301

j717273419/Magicodes.Admin.Core

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
adminhost.Dockerfile 1.76 KB
一键复制 编辑 原始数据 按行查看 历史
李文强 提交于 2018-12-19 15:12 . 修改dockerfile
FROM microsoft/dotnet:2.1-aspnetcore-runtime AS base
WORKDIR /app
EXPOSE 80
# 安装libgdiplus库,用于Excel导出
RUN apt-get update && apt-get install -y libgdiplus
FROM microsoft/dotnet:2.1-sdk AS build
WORKDIR /src
COPY ["src/admin/api/Admin.Host/Admin.Host.csproj", "src/admin/api/Admin.Host/"]
COPY ["src/admin/api/Admin.Web.Core/Admin.Web.Core.csproj", "src/admin/api/Admin.Web.Core/"]
COPY ["src/admin/api/Admin.Application/Admin.Application.csproj", "src/admin/api/Admin.Application/"]
COPY ["src/unity/Magicodes.MiniProgram/Magicodes.MiniProgram.csproj", "src/unity/Magicodes.MiniProgram/"]
COPY ["src/core/Magicodes.Admin.Core/Magicodes.Admin.Core.csproj", "src/core/Magicodes.Admin.Core/"]
COPY ["src/data/Magicodes.Admin.EntityFrameworkCore/Magicodes.Admin.EntityFrameworkCore.csproj", "src/data/Magicodes.Admin.EntityFrameworkCore/"]
COPY ["src/core/Magicodes.Admin.Core.Custom/Magicodes.Admin.Core.Custom.csproj", "src/core/Magicodes.Admin.Core.Custom/"]
COPY ["src/unity/Magicodes.Unity/Magicodes.Unity.csproj", "src/unity/Magicodes.Unity/"]
COPY ["src/unity/Magicodes.Pay/Magicodes.Pay.csproj", "src/unity/Magicodes.Pay/"]
COPY ["src/admin/api/Admin.Application.Custom/Admin.Application.Custom.csproj", "src/admin/api/Admin.Application.Custom/"]
COPY ["src/unity/Abp.Castle.NLog/Abp.Castle.NLog.csproj", "src/unity/Abp.Castle.NLog/"]
COPY ["src/unity/Magicodes.Sms/Magicodes.Sms.csproj", "src/unity/Magicodes.Sms/"]
RUN dotnet restore "src/admin/api/Admin.Host/Admin.Host.csproj"
COPY . .
WORKDIR "/src/src/admin/api/Admin.Host"
RUN dotnet build "Admin.Host.csproj" -c Release -o /app
FROM build AS publish
RUN dotnet publish "Admin.Host.csproj" -c Release -o /app
FROM base AS final
WORKDIR /app
COPY --from=publish /app .
ENTRYPOINT ["dotnet", "Magicodes.Admin.Web.Host.dll"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/wangdongjie/Magicodes.Admin.Core.git
[email protected]:wangdongjie/Magicodes.Admin.Core.git
wangdongjie
Magicodes.Admin.Core
Magicodes.Admin.Core
master

搜索帮助