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