代码拉取完成,页面将自动刷新
同步操作将从 张善友/Oxygen-Dapr.EshopSample 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。