Compare commits
No commits in common. "dev" and "main" have entirely different histories.
@ -10,20 +10,20 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
|||||||
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
|
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
|
||||||
ARG BUILD_CONFIGURATION=Release
|
ARG BUILD_CONFIGURATION=Release
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY ["YD_PT_WeChatApplet/YD_PT_WeChatApplet.Api.csproj", "YD_PT_WeChatApplet/"]
|
COPY ["WeChatApplet/YD_WeChatApplet.Api.csproj", "WeChatApplet/"]
|
||||||
COPY ["YD_PT_WeChatApplet.Commons/YD_PT_WeChatApplet.Commons.csproj", "YD_PT_WeChatApplet.Commons/"]
|
COPY ["YD_WeChatApplet.Commons/YD_WeChatApplet.Commons.csproj", "YD_WeChatApplet.Commons/"]
|
||||||
RUN dotnet restore "./YD_PT_WeChatApplet/YD_PT_WeChatApplet.Api.csproj"
|
RUN dotnet restore "./WeChatApplet/YD_WeChatApplet.Api.csproj"
|
||||||
COPY . .
|
COPY . .
|
||||||
WORKDIR "/src/YD_PT_WeChatApplet"
|
WORKDIR "/src/WeChatApplet"
|
||||||
RUN dotnet build "./YD_PT_WeChatApplet.Api.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
RUN dotnet build "./YD_WeChatApplet.Api.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
||||||
|
|
||||||
# 发布阶段
|
# 发布阶段
|
||||||
FROM build AS publish
|
FROM build AS publish
|
||||||
ARG BUILD_CONFIGURATION=Release
|
ARG BUILD_CONFIGURATION=Release
|
||||||
RUN dotnet publish "./YD_PT_WeChatApplet.Api.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
RUN dotnet publish "./YD_WeChatApplet.Api.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
||||||
|
|
||||||
# 运行阶段
|
# 运行阶段
|
||||||
FROM base AS final
|
FROM base AS final
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=publish /app/publish .
|
COPY --from=publish /app/publish .
|
||||||
ENTRYPOINT ["dotnet", "YD_PT_WeChatApplet.Api.dll"]
|
ENTRYPOINT ["dotnet", "YD_WeChatApplet.Api.dll"]
|
||||||
|
|||||||
@ -19,7 +19,7 @@ namespace YD_WeChatApplet
|
|||||||
{
|
{
|
||||||
serverOptions.Limits.MaxRequestBodySize = 10485760;
|
serverOptions.Limits.MaxRequestBodySize = 10485760;
|
||||||
});
|
});
|
||||||
webBuilder.UseKestrel().UseUrls("http://*:9997");
|
webBuilder.UseKestrel().UseUrls("http://*:9995");
|
||||||
webBuilder.UseIIS();
|
webBuilder.UseIIS();
|
||||||
webBuilder.UseStartup<Startup>();
|
webBuilder.UseStartup<Startup>();
|
||||||
}).UseServiceProviderFactory(new AutofacServiceProviderFactory());
|
}).UseServiceProviderFactory(new AutofacServiceProviderFactory());
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<BaseOutputPath></BaseOutputPath>
|
<BaseOutputPath></BaseOutputPath>
|
||||||
<GenerateDocumentationFile>True</GenerateDocumentationFile>
|
<GenerateDocumentationFile>True</GenerateDocumentationFile>
|
||||||
<DocumentationFile>obj\Debug\net6.0\YD_PT_WeChatApplet.Api.xml</DocumentationFile>
|
<DocumentationFile>obj\Debug\net6.0\YD_WeChatApplet.Api.xml</DocumentationFile>
|
||||||
<BaseIntermediateOutputPath>obj\</BaseIntermediateOutputPath>
|
<BaseIntermediateOutputPath>obj\</BaseIntermediateOutputPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user