1 Star 0 Fork 1

小面包/IDS4Admin

forked from zhenlei/IDS4Admin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
AdminDockerfile 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
zhenlei 提交于 2021-11-29 15:18 . 添加项目文件。
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
WORKDIR /src
COPY ["src/IDS4Admin.Admin/IDS4Admin.Admin.csproj", "src/IDS4Admin.Admin/"]
COPY ["src/IDS4Admin.Admin.EntityFramework.Shared/IDS4Admin.Admin.EntityFramework.Shared.csproj", "src/IDS4Admin.Admin.EntityFramework.Shared/"]
COPY ["src/IDS4Admin.Admin.EntityFramework.SqlServer/IDS4Admin.Admin.EntityFramework.SqlServer.csproj", "src/IDS4Admin.Admin.EntityFramework.SqlServer/"]
COPY ["src/IDS4Admin.Admin.EntityFramework.PostgreSQL/IDS4Admin.Admin.EntityFramework.PostgreSQL.csproj", "src/IDS4Admin.Admin.EntityFramework.PostgreSQL/"]
COPY ["src/IDS4Admin.Shared/IDS4Admin.Shared.csproj", "src/IDS4Admin.Shared/"]
COPY ["src/IDS4Admin.Admin.EntityFramework.MySql/IDS4Admin.Admin.EntityFramework.MySql.csproj", "src/IDS4Admin.Admin.EntityFramework.MySql/"]
RUN dotnet restore "src/IDS4Admin.Admin/IDS4Admin.Admin.csproj"
COPY . .
WORKDIR "/src/src/IDS4Admin.Admin"
RUN dotnet build "IDS4Admin.Admin.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "IDS4Admin.Admin.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENV ASPNETCORE_FORWARDEDHEADERS_ENABLED=true
ENTRYPOINT ["dotnet", "IDS4Admin.Admin.dll"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/Matrixlxh/IDS4Admin.git
[email protected]:Matrixlxh/IDS4Admin.git
Matrixlxh
IDS4Admin
IDS4Admin
master

搜索帮助