Select Page

Receiving many errors below when trying to build

/usr/share/dotnet/sdk/3.1.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets(155,5): warning MSB3026: Could not copy "/src/Bot.Dash/client/build/src/Images/bank-logo/NL/Triodos/5678b426024b3a48f1603179c3401dd7.png" to "/app/client/build/src/Images/bank-logo/NL/Triodos/5678b426024b3a48f1603179c3401dd7.png". Beginning retry 1 in 1000ms. Could not find a part of the path '/app/client/build/src/Images/bank-logo/NL/Triodos/5678b426024b3a48f1603179c3401dd7.png'.  [/src/Bot.Dash/Bot.Dash.csproj]

This error repeated many times:

But this is not because the file isn’t there, in fact logging inside the image shows the file exist at the path:


# make dir and copy npm build directory manually before publish
FROM build AS publish
RUN mkdir /app/client -p
RUN cp -r client/build /app/client/
RUN dotnet publish Bot.Dash.csproj -c Release -o /app