This commit is contained in:
parent
16b0990454
commit
4ca6b7d842
2 changed files with 12 additions and 10 deletions
|
|
@ -10,17 +10,19 @@
|
|||
<DockerfileContext>.</DockerfileContext>
|
||||
<RootNamespace>BMA.EHR.Leave.Service</RootNamespace>
|
||||
<AssemblyName>BMA.EHR.Leave</AssemblyName>
|
||||
<NoWarn>$(NoWarn);1591</NoWarn>
|
||||
|
||||
<NoWarn>$(NoWarn);</NoWarn>
|
||||
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Remove="Controllers\CheckInController.cs" />
|
||||
<Compile Remove="Controllers\CheckInController.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="..\.dockerignore" Link=".dockerignore">
|
||||
<DependentUpon>$(DockerDefaultDockerfile)</DependentUpon>
|
||||
</None>
|
||||
<None Include="..\.dockerignore" Link=".dockerignore">
|
||||
<DependentUpon>$(DockerDefaultDockerfile)</DependentUpon>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
@ -71,9 +73,9 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Update="SeedLeaveData.xlsx">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="SeedLeaveData.xlsx">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -65,13 +65,13 @@ COPY . .
|
|||
WORKDIR "/src/BMA.EHR.Leave"
|
||||
|
||||
# 3. Build แบบ Release
|
||||
RUN dotnet build "BMA.EHR.Leave.csproj" -c Release -nowarn -o /app/build
|
||||
RUN dotnet build "BMA.EHR.Leave.csproj" -c Release -o /app/build
|
||||
|
||||
# ---------------------------
|
||||
# Publish stage
|
||||
# ---------------------------
|
||||
FROM build AS publish
|
||||
RUN dotnet publish "BMA.EHR.Leave.csproj" -c Release -nowarn -o /app/publish /p:UseAppHost=false
|
||||
RUN dotnet publish "BMA.EHR.Leave.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
||||
|
||||
# ---------------------------
|
||||
# Final runtime image
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue