❔ Docker: Dotnet restore just loading
This is my Dockerfile.
It's installing all the node_modules and build is doing fine, but on
dotnet restore
, it's just loading. Why?
18 Replies
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
Nothing is being logged on dotnet restore.. It's just loading and loading. Like nothing happens
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
I tried --progess=plain yesterday, still nothing on dotnet restore
"loading" or "hanging"
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
So, this line
RUN dotnet restore "BFF/BackendForFrontend.csproj"
in the Dockerfile, should be changed to dotnet restore -v:d "BFF/BackendForFrontend.csproj"
?TeBeCo
dotnet restore -v:d
Quoted by
<@689473681302224947> from #Docker: Dotnet restore just loading (click here)
React with ❌ to remove this embed.
So, only
dotnet restore -v:d
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
Okey, I'll update you in a bit
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
@TeBeClone
It's just like this
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
RUN dotnet restore -v:d "/BackendForFrontend.csproj"
. I tried running just
RUN dotnet restore -v:d "BackendForFrontend.csproj"
, but that didn't workTeBeCo
you could docker run / attach / run the restore from the console to check what's going on
Quoted by
<@689473681302224947> from #Docker: Dotnet restore just loading (click here)
React with ❌ to remove this embed.
I don't think
/
is normal here, your project is definitely not in the root folder of the container. Your project files are instead copied to /src
, so it does not make sense to tell dotnet restore
to restore a project at /BackendForFrontend.csproj
when it is not there.
You can do RUN ls
in your container before the dotnet restore
to see the file structure inside your container.Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.