79769614

Date: 2025-09-19 14:16:44
Score: 1
Natty:
Report link
RUN dotnet publish -c Release -o out

Command builds sln file directly and it causes wrong files to publish. Instead of this, you should build your csproj file directly.

WORKDIR /PATH/TO/YOUR/CSPROJ/FILE
RUN dotnet publish api.csproj -c Release -o out
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: erhanzeyrek