C
C#15mo ago
Reversal

✅ 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
Mayor McCheese
Mayor McCheese15mo ago
line 17 looks suspect
Reversal
ReversalOP15mo ago
Looks like it's still complaining after fixxing that line
SinFluxx
SinFluxx15mo ago
22 as well?
Reversal
ReversalOP15mo ago
Didn't see that one but still complaing
Reversal
ReversalOP15mo ago
Reversal
ReversalOP15mo ago
I could maybe fix it by giving the entire "C:\" path but that doesnt sound right
SinFluxx
SinFluxx15mo ago
Holy pixels batman
Mayor McCheese
Mayor McCheese15mo ago
I'm only 1/2 paying attention sorry; saw a couple typos was all at first glance
Reversal
ReversalOP15mo ago
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
SinFluxx
SinFluxx15mo ago
It doesn't look like from your screenshot that your dockerfile is in the Server folder though?
Reversal
ReversalOP15mo ago
Reversal
ReversalOP15mo ago
It is
SinFluxx
SinFluxx15mo ago
That shows it outside the Server folder?
SinFluxx
SinFluxx15mo ago
Reversal
ReversalOP15mo ago
ofc 😄 Ok I did read wrong what u said but I meant that it's outside the server folder
SinFluxx
SinFluxx15mo ago
Does the path for dotnet restore need "./Server"?
Reversal
ReversalOP15mo ago
No clue but it's fixxed now. Trying to solve other issues
SinFluxx
SinFluxx15mo ago
$close
MODiX
MODiX15mo ago
Use the /close command to mark a forum thread as answered
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Reversal
ReversalOP15mo ago
@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)
Reversal
ReversalOP15mo ago
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Reversal
ReversalOP15mo ago
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Reversal
ReversalOP15mo ago
yh
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Reversal
ReversalOP15mo ago
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Reversal
ReversalOP15mo ago
It is only the dockerfile If I replace it with the right one it works somehow
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Reversal
ReversalOP15mo ago
It is sec let me push my clutter
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Reversal
ReversalOP15mo ago
What
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Reversal
ReversalOP15mo ago
Reversal
ReversalOP15mo ago
docker build --progress=plain --no-cache .
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Reversal
ReversalOP15mo ago
sec
Reversal
ReversalOP15mo ago
docker build --progress=plain --no-cache .
Reversal
ReversalOP15mo ago
How is it not finding I'm clearly giving the right poath
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Reversal
ReversalOP15mo ago
but i gave the right workdir and after i gave the path what the f ?
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Reversal
ReversalOP15mo ago
I'm about to hard flame
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Reversal
ReversalOP15mo ago
Honestly I wasted 2 days to find a button
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Reversal
ReversalOP15mo ago
+ i made the same file which don't work
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Reversal
ReversalOP15mo ago
I changed the cases sensitivy and still broke
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Reversal
ReversalOP15mo ago
Honestly I don't understand anything about pathing anymore. I'm always stuck on these little things
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Reversal
ReversalOP15mo ago
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
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Reversal
ReversalOP15mo ago
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Reversal
ReversalOP15mo ago
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Reversal
ReversalOP15mo ago
Ok interesting Looks like I don't understand pathing and the copy
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Reversal
ReversalOP15mo ago
It works what you said but I thought that copy would copy the files to the container
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Reversal
ReversalOP15mo ago
so it would not really matter what name i gave
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Reversal
ReversalOP15mo ago
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
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Reversal
ReversalOP15mo ago
what no way
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Reversal
ReversalOP15mo ago
ahhaahhaah
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Reversal
ReversalOP15mo ago
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
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Reversal
ReversalOP15mo ago
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
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Reversal
ReversalOP15mo ago
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
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Reversal
ReversalOP15mo ago
It's going to be an intersting journey for sure
MODiX
MODiX15mo ago
Use the /close command to mark a forum thread as answered
Want results from more Discord servers?
Add your server