-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copying of .git
into Dockerfile
#335
Comments
while doing full "source distribution" all needed version placeholders are provided somewhere, thus avoiding need for carrying |
@yarikoptic If you're installing from an sdist (assuming that's what you're referring to), then |
yes, that is what I mean. so instead of all the manual individual COPY steps there should just be an Line 49 in 8a998bb
pip following installation from it, to make it all clean, right?
|
|
@yarikoptic @jwodder Thanks for your inputs. In light of your ideas, I think we can approach this problem by using the multi-stage build feature in Docker/Podman. Essentially, using this feature, we can separate the build environment from the runtime environment and include only the runtime environment in the container image for the project. |
datalad-registry/Dockerfile
Line 54 in 8a998bb
As illustrated above, currently, the
.git
directory is copied to the docker image of the project becauseversioningit
, the versioning system, requires it to build the project. Look in to whether this can be circumvented or avoided.This issue is related to #334 to some degree.
The text was updated successfully, but these errors were encountered: