From 1c27bffa7355744fc30f9562061822601bc388ea Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Fri, 5 Jul 2024 02:28:18 +0300 Subject: [PATCH] build: remove pdb files --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e1856c5..2f0c414 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file