This commit is contained in:
parent
92847e6be2
commit
16b0990454
1 changed files with 2 additions and 2 deletions
|
|
@ -65,13 +65,13 @@ COPY . .
|
||||||
WORKDIR "/src/BMA.EHR.Leave"
|
WORKDIR "/src/BMA.EHR.Leave"
|
||||||
|
|
||||||
# 3. Build แบบ Release
|
# 3. Build แบบ Release
|
||||||
RUN dotnet build "BMA.EHR.Leave.csproj" -c Release -warnaslevel:0 -o /app/build
|
RUN dotnet build "BMA.EHR.Leave.csproj" -c Release -nowarn -o /app/build
|
||||||
|
|
||||||
# ---------------------------
|
# ---------------------------
|
||||||
# Publish stage
|
# Publish stage
|
||||||
# ---------------------------
|
# ---------------------------
|
||||||
FROM build AS publish
|
FROM build AS publish
|
||||||
RUN dotnet publish "BMA.EHR.Leave.csproj" -c Release -warnaslevel:0 -o /app/publish /p:UseAppHost=false
|
RUN dotnet publish "BMA.EHR.Leave.csproj" -c Release -nowarn -o /app/publish /p:UseAppHost=false
|
||||||
|
|
||||||
# ---------------------------
|
# ---------------------------
|
||||||
# Final runtime image
|
# Final runtime image
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue