Commit 8b2ddd20 by guanzhenshan

发布生成仓库销量情况报表

parent 59cb0fa4
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
......
FROM microsoft/dotnet:2.1-runtime AS base
WORKDIR /app
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
FROM microsoft/dotnet:2.1-sdk AS build
WORKDIR /src
COPY Bailun.DC.SaveWHSalesService/Bailun.DC.SaveWHSalesService.csproj Bailun.DC.SaveWHSalesService/
COPY Bailun.DC.Common/Bailun.DC.Common.csproj Bailun.DC.Common/
COPY Bailun.DC.DB/Bailun.DC.DB.csproj Bailun.DC.DB/
COPY Bailun.DC.Models/Bailun.DC.Models.csproj Bailun.DC.Models/
RUN dotnet restore Bailun.DC.SaveWHSalesService/Bailun.DC.SaveWHSalesService.csproj
COPY . .
WORKDIR /src/Bailun.DC.SaveWHSalesService
RUN dotnet build Bailun.DC.SaveWHSalesService.csproj -c Release -o /app
FROM build AS publish
RUN dotnet publish Bailun.DC.SaveWHSalesService.csproj -c Release -o /app
FROM base AS final
WORKDIR /app
COPY --from=publish /app .
ENTRYPOINT ["dotnet", "Bailun.DC.SaveWHSalesService.dll"]
using System;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using System;
using System.Threading.Tasks;
namespace Bailun.DC.SaveWHSalesService
{
class Program
{
static void Main(string[] args)
static async Task Main(string[] args)
{
new Services().Save();
Console.WriteLine("统计易仓发货单指标");
var builder = new HostBuilder().ConfigureServices((hostContext, services) =>
{
services.AddHostedService<Services>();
});
await builder.RunConsoleAsync();
}
//static void Main(string[] args)
//{
// new Services().Save();
//}
}
}
......@@ -6,3 +6,10 @@ services:
build:
context: .
dockerfile: SkuWHRedundancyService/Dockerfile
bailun.dc.savewhsalesservice:
image: ${DOCKER_REGISTRY}bailundcsavewhsalesservice
build:
context: .
dockerfile: Bailun.DC.SaveWHSalesService/Dockerfile
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment