✅ Docker Dotnet restore
I am trying to run a Blazor Hosted Wasm project in docker but looks like I'm stumbling over probably some pathing issues. Can someone have a look (👁️) as well of whats going wrong?
82 Replies
line 17 looks suspect
Looks like it's still complaining after fixxing that line
22 as well?
Didn't see that one but still complaing
I could maybe fix it by giving the entire "C:\" path but that doesnt sound right
Holy pixels batman
I'm only 1/2 paying attention sorry; saw a couple typos was all at first glance
Ok, interestingly enough I didn't have to give any path at line 11 but just LoLTimer.Server.csproj
Which is pretty weird because my dockerfile is not inside the "Server" folder
It doesn't look like from your screenshot that your dockerfile is in the Server folder though?
It is
That shows it outside the Server folder?
ofc 😄
Ok I did read wrong what u said but
I meant that it's outside the server folder
Does the path for dotnet restore need "./Server"?
No clue but it's fixxed now. Trying to solve other issues
$close
Use the /close command to mark a forum thread as answered
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
@TeBeClone anyway I have been hitting my head to the wall 2 days just to figure out there as literally a tool in vs studio to create a dockerfile for you
I came very close to my own solution but I dont understand why the right one( generated by vs studio) would work instead of the left one (the one I made)
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
yh
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
It is only the dockerfile
If I replace it with the right one it works somehow
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
It is sec
let me push my clutter
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
What
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
docker build --progress=plain --no-cache .
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
sec
docker build --progress=plain --no-cache .
How is it not finding
I'm clearly giving the right poath
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
but i gave the right workdir
and after i gave the path
what the f ?
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
I'm about to hard flame
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
Honestly
I wasted 2 days
to find a button
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
+
i made the same file
which don't work
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
I changed the cases sensitivy and still broke
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
Honestly I don't understand anything about pathing anymore. I'm always stuck on these little things
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
But it doesnt make sense: The copy 2nd argument copys to a folder in the container right
so it should not really matter
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
Ok interesting
Looks like I don't understand pathing and the copy
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
It works what you said but
I thought that copy would copy the files to the container
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
so it would not really matter what name i gave
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
ohhhhhhhhhhhhhhhhh
yeaaa ok it references to that folder but the folder is lowercase and it looks at case sensitivity
mannnnnnnnnnnnnnnnnnnnnnnnnnnnn
you are a hero
I never liked pathing
Ok, ok. we're learning stuff the hard way
Blazor in docker ✅
Btw this is just webassembly and not blazor server right
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
what no way
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
ahhaahhaah
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
Well
It's time to learn how to host this on raspberry pi
also have to check out ghithub actions with yaml which is going to be a pain as well
thanks broski I'm going to have fun
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
naah
all I know is I hvave to use nginx
but docker is coolio for this kind of stuff
Before docker I had to install in a weird way .net core on the raspberry
but with docker it's so much better
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
yeah exactly
I downloaded mssql on my pc
but was pretty much clutter
with docker i can just throw it away and start new in seconds
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
It's going to be an intersting journey for sure
Use the /close command to mark a forum thread as answered