1 Star 0 Fork 3

只争朝夕/Oxygen-Dapr.EshopSample

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 2.40 KB
一键复制 编辑 原始数据 按行查看 历史
曾宇平 提交于 2021-06-03 18:02 . bugfix
FROM mcr.microsoft.com/dotnet/sdk:5.0 as svcbuild
WORKDIR /src
copy . .
RUN dotnet publish -c Release Oxygen-Dapr.EshopSample.sln
FROM mcr.microsoft.com/dotnet/aspnet:5.0 as goodsservice
WORKDIR /app
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
COPY --from=svcbuild /src/Services/GoodsService/Host/bin/Release/net5.0/publish /app
ENTRYPOINT ["dotnet", "Host.dll"]
FROM mcr.microsoft.com/dotnet/aspnet:5.0 as accountservice
WORKDIR /app
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
COPY --from=svcbuild /src/Services/AccountService/Host/bin/Release/net5.0/publish /app
ENTRYPOINT ["dotnet", "Host.dll"]
FROM mcr.microsoft.com/dotnet/aspnet:5.0 as publicservice
WORKDIR /app
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
COPY --from=svcbuild /src/Services/PublicService/Host/bin/Release/net5.0/publish /app
ENTRYPOINT ["dotnet", "Host.dll"]
FROM mcr.microsoft.com/dotnet/aspnet:5.0 as tradeservice
WORKDIR /app
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
COPY --from=svcbuild /src/Services/TradeService/Host/bin/Release/net5.0/publish /app
ENTRYPOINT ["dotnet", "Host.dll"]
FROM mcr.microsoft.com/dotnet/aspnet:5.0 as imageservice
WORKDIR /app
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
COPY --from=svcbuild /src/Services/ImageService/bin/Release/net5.0/publish /app
ENTRYPOINT ["dotnet", "ImageService.dll"]
FROM mcr.microsoft.com/dotnet/aspnet:5.0 as jobservice
WORKDIR /app
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
COPY --from=svcbuild /src/Services/JobService/bin/Release/net5.0/publish /app
ENTRYPOINT ["dotnet", "JobService.dll"]
FROM mcr.microsoft.com/dotnet/aspnet:5.0 as oauthservice
WORKDIR /app
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
COPY --from=svcbuild /src/Services/OauthService/bin/Release/net5.0/publish /app
ENTRYPOINT ["dotnet", "OauthService.dll"]
FROM mcr.microsoft.com/dotnet/aspnet:5.0 as apidocument
WORKDIR /app
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
COPY --from=svcbuild /src/Services/ApiDocument/ApiDocument/bin/Release/net5.0/publish /app
ENTRYPOINT ["dotnet", "ApiDocument.dll"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/wanghuayu/Oxygen-Dapr.EshopSample.git
git@gitee.com:wanghuayu/Oxygen-Dapr.EshopSample.git
wanghuayu
Oxygen-Dapr.EshopSample
Oxygen-Dapr.EshopSample
main

搜索帮助