refactor(svcs): ♻🚧 disable PublishReadyToRun for now (throwing NETSDK1095 on net6.0)

This commit is contained in:
Collin M. Barrett 2021-11-11 11:32:20 -06:00
parent e05cc1dc7d
commit 8156117927
2 changed files with 4 additions and 2 deletions

View file

@ -31,7 +31,8 @@ WORKDIR /app/Archival/FilterLists.Archival.Api
COPY Archival/FilterLists.Archival.Api/. .
# TODO: enable PublishTrimmed in csproj file
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 -p:PublishReadyToRun=true
# 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
# package final
FROM base AS final

View file

@ -31,7 +31,8 @@ WORKDIR /app/Directory/FilterLists.Directory.Api
COPY Directory/FilterLists.Directory.Api/. .
# TODO: enable PublishTrimmed in csproj file
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 -p:PublishReadyToRun=true
# 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
# package final
FROM base AS final