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
Dean
06/17/2024, 9:52 PM
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
gavinbaumanis
06/17/2024, 10:18 PM
@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
Dean
06/17/2024, 10:19 PM
Its doesnt do that, it does things like download the lucee version from forgebox
g
gavinbaumanis
06/17/2024, 10:21 PM
"OH!"
I thought the warmup - was doing the initial load of my application - so that the first request wasn't slow.
learn something new!