curved-pharmacist-95993
08/16/2024, 10:20 AMelegant-florist-94385
08/16/2024, 10:36 AMelegant-florist-94385
08/16/2024, 10:37 AMcurved-pharmacist-95993
08/16/2024, 10:42 AMelegant-florist-94385
08/16/2024, 10:55 AMdocker_image()
target the dependencies
field and mention every file, so that the docker context contains them. I've found that this does not work very well since you can't use globs in the dependencies
field.
I know for a FastAPI app, I just wrote a tiny entrypoint file that does
if __name__=="__main__":
import uvicorn
uvicorn.run(app)
Is there something similar that you can do for your app?
(I have also seen examples using `PEX_SCRIPT=<some shell command>`but don't have any personal experience with this)curved-pharmacist-95993
08/16/2024, 11:38 AMelegant-florist-94385
08/16/2024, 12:20 PMhappy-kitchen-89482
08/16/2024, 7:17 PMmain.py
and that transitively depends on everything it needs (by inference from `import`s) then it should workhappy-kitchen-89482
08/16/2024, 7:17 PMhappy-kitchen-89482
08/16/2024, 7:19 PMhappy-kitchen-89482
08/16/2024, 7:19 PM