build: remove pdb files
This commit is contained in:
parent
76fd1347ce
commit
1c27bffa73
@ -15,9 +15,10 @@ ENV NUGET_PASSWORD=$NUGET_PASSWORD
|
||||
RUN dotnet restore ./Backend.sln --configfile nuget.config
|
||||
WORKDIR /app
|
||||
WORKDIR /src
|
||||
RUN dotnet publish ./Endpoint/Endpoint.csproj -c Release -o /app
|
||||
RUN dotnet publish ./Endpoint/Endpoint.csproj -c Release --self-contained false -p:PublishSingleFile=false -o /app
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=build /app .
|
||||
RUN find . -name "*.pdb" -type f -delete
|
||||
ENTRYPOINT ["dotnet", "Mirea.Api.Endpoint.dll"]
|
Loading…
Reference in New Issue
Block a user