Quick question...In my DockerFile - Whereabouts sh...
# docker-commandbox
g
Quick question...In my DockerFile - Whereabouts should the warmup-server script be run? Should it be before or after the "COPY" command used to place my source code in the container? At the moment I have the COPY command after the call to the warmup script - and that seems wrong... thanks!
d
I use multi-stage builds, so the base container has the warm up script just above the CMD for the docker entrypoint, then when I build the actual container, I copy the files in that stage. So technically, thats after the warmup script.
g
@dean I am not saying that wrong - but it "seems" wrong to me... wouldn't we need the code in place to create the web contexts / do the initial compile, on the first request? (though I could be completely wrong about warmup DOES vs what I think it does!
d
Its doesnt do that, it does things like download the lucee version from forgebox
g
"OH!" I thought the warmup - was doing the initial load of my application - so that the first request wasn't slow. learn something new!
d
We do that with the Web.cfc, initialise CFCs etc
👍🏼 1