solid start `npm run build` hangs in docker container
Trying to dockerize a solid application, built from solid start. It seems to hang at
npm run build
step, at solid-start rendering index.html...
. Here is the docker file im using
33 Replies
I just run
node dist/server.js
in my docker setup and it works well.but you gotta build the first right?
oooh, you're building in the container
yeah
you are not?
yeah, I do, but it builds okay.
misread your OP
š
hmmm
what node image are you using?
node:18.16-alpine
idk why mine wont build.... š
let me try that ig. Idk if it would make a difference
Mine takes ages to build as I'm on a M2 MBP, how long have you let it sit there?
like 300s before I kill it
oh yeah, mine takes like 10 minutes
it takes like 2 seconds building it locally tho...
is solid-start really that heavy?
no, but docker ARM -> AMD64 emulation is slow as shit
are you on an ARM chip?
uhh good question. I got no idea lol
what kind of computer are you typing on š
better yet, what operating system are you on
linux
ahhh, so probably not a mac then
nah
so probalby i386
so that isn't the issue then
does solid start need any system dependencies?
I dont see any mentions of it in the docs
or the interweebs
i don't think so? dunno for sure though
hmm using
node:18.16-alpine
didnt seem to change much... Theres no reason building a js app should take 10 mins....it's the downside of using emulation to compile
but the upside of this stupidly fast M2 chip outweighs that
ugh....
bruh still going... š
huh found this issue. Also upgraded to node 20, didnt change anything tho... @ryansolid is there a flag of some sort we can turn on for more debugging logs? The issue mentions of this idea, wondering if it ever became anything.
https://github.com/solidjs/solid-start/issues/406
GitHub
build problem in docker Ā· Issue #406 Ā· solidjs/solid-start
A lot of time passes but nothing happens
lol, changed to
node:20
instead of the alpine image
the issue went away
weird tho...
ig its got something to do with system dependencies
@timothyallan fixed the issue if you are curious lol....you are running ssr: false right?
yes
pffft amateur š
lmfaoo
you win
ya man, but it's bitter sweet being the winner of a loser contest