On my machine, outside of Docker, running
ngc -p . to compile my project takes 17 seconds. Within Docker, it takes a bit over an hour.
For comparison, the standard TypeScript compiler (
tsc -p .) runs in 4 seconds outside of Docker and in 10 seconds within Docker.
I can’t imagine what
ngc might be doing to upset Docker so much, but something is definitely wrong here.