Hello all, can anyone point me to a tutorial or doc about deploying a 👖 monorepo using Docker? I’m having difficulty wrapping my head around if I need to build my app inside a Docker Container in order to copy the resulting PEX into another Docker Image that I can push to my registry, or if there’s another simpler way
02/07/2023, 5:23 PM
You need to build the pex on Linux, but it doesn't have to be in a container. Typically people use CI for this (it's good practice to build deployables in CI rather than on a developer laptop anyway). But in the upcoming Pants 2.15 release you can also use the "environments" feature to get Pants to build the PEX in a container even when Pants itself is running on MacOS.
02/07/2023, 5:29 PM
Thanks @happy-kitchen-89482, I’m using CircleCI but had no idea if I can install additional dependencies that may be needed by my app dependencies at package time, going to take a look at that!