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
|
RUN dotnet restore ./Backend.sln --configfile nuget.config
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
WORKDIR /src
|
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
|
FROM base AS final
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build /app .
|
COPY --from=build /app .
|
||||||
|
RUN find . -name "*.pdb" -type f -delete
|
||||||
ENTRYPOINT ["dotnet", "Mirea.Api.Endpoint.dll"]
|
ENTRYPOINT ["dotnet", "Mirea.Api.Endpoint.dll"]
|
Loading…
Reference in New Issue
Block a user