feat(svcs): 🔥 dotnet publish -p:DebugSymbols=false

This commit is contained in:
Collin M. Barrett 2021-11-11 08:53:23 -06:00
parent 8156117927
commit b3e93a7f22
2 changed files with 2 additions and 2 deletions

View file

@ -32,7 +32,7 @@ COPY Archival/FilterLists.Archival.Api/. .
# TODO: enable PublishTrimmed in csproj file
# TODO: enable PublishReadyToRun
RUN dotnet publish -c Release -p:DebugType=None --no-restore -o /app/publish -p:TreatWarningsAsErrors=true -r linux-musl-x64 --self-contained true -p:PublishSingleFile=true
RUN dotnet publish -c Release -p:DebugType=None -p:DebugSymbols=false --no-restore -o /app/publish -p:TreatWarningsAsErrors=true -r linux-musl-x64 --self-contained true -p:PublishSingleFile=true
# package final
FROM base AS final

View file

@ -32,7 +32,7 @@ COPY Directory/FilterLists.Directory.Api/. .
# TODO: enable PublishTrimmed in csproj file
# TODO: enable PublishReadyToRun
RUN dotnet publish -c Release -p:DebugType=None --no-restore -o /app/publish -p:TreatWarningsAsErrors=true -r linux-musl-x64 --self-contained true -p:PublishSingleFile=true
RUN dotnet publish -c Release -p:DebugType=None -p:DebugSymbols=false --no-restore -o /app/publish -p:TreatWarningsAsErrors=true -r linux-musl-x64 --self-contained true -p:PublishSingleFile=true
# package final
FROM base AS final