Correct solution for LookupError: Error getting the version from source vcs
#1293
Unanswered
nathanbrown69
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on a python application using the rye package manager. I wanted to use the dynamic = ["version"] setting and use the latest git tag as the version of the project (since I have set up a release drafter workflow), however I ran into this error (only when trying to build a docker image, running rye sync locally works good!)
After some reading, I understood this was due to .git not present in the docker image and eventually got it working using the below configurations.
Dockerfile:
pyproject.toml
Now my issue is that after I added this line in my docker image, the overall image size went up from 190 MB to 320 MB. I'd love to optimize it!
I'd like to reduce the size of my docker image or find a better fix for using dynamic versioning!
Beta Was this translation helpful? Give feedback.
All reactions