Should Poetry online deployment use source code or tar.gz/whl packages? #9664
Replies: 1 comment
|
a wheel is a good deployment artifact if the application is packaged as an installable python project build and test the wheel in ci then copy it into the image and install it with python -m pip install followed by the wheel path one detail to watch is that a wheel does not embed poetry.lock copying source and running poetry install is also valid when the application relies on the source layout the build command creates both distributions |
Uh oh!
There was an error while loading. Please reload this page.
When running
poetry build, tar.gz/whl packages are generated. For deploying an application to a container environment, is it preferable to use these types of packages or to deploy using the source code? Which is the most appropriate choice?If using a tar.gz package, the CI/CD process can be as follows:
ADD dist/app.tar.gz /appAll reactions