
#323: Best practices for Docker in production
Talk Python To Me
00:00
Compiling a P Y C Into a Docker Image
When you start up the python programm, it loads in your python files and then compiles them. Compilation here is mat the same as compiling a c extension. It's basel one to one translation. And so if you really want fast o start up, you can make your image a bit larger and compile the p i cs. That becomes a step in your doctor build files. If youre going to write some python code, what editor do you use? I use space mak, which is kind of like they took emax and they configured it like 20 years. Its lik youre jumping 20 years into the future.
Transcript
Play full episode