billowy-cat-69904
05/22/2024, 1:35 PMlibraries
and projects
, libraries have modules (packages) that are imported in projects. There are more than one library and more than one project. Each project has its own dockerfile and dependencies. I want to create a docker image for a project and push it to it's respective image repository. I can build a docker image by cd into project and running docker build but it fails if it has any dependencies on libraries
(the libraries are installed as an editable install from rquirements.txt
) . Ultimately I want to integrate image building step in cicd pipeline such that it builds only those images which have changed and rebuild all images if any of the shared library has changed.wide-midnight-78598
05/22/2024, 2:26 PMbillowy-cat-69904
05/23/2024, 10:12 AMDockerfile
, COPY . /prj
but it fails with error
Dockerfile has `COPY` instructions for source files that may not have been found in the Docker build context.
The following files were not found in the Docker build context:
* .
15:38:10.20 [ERROR] 1 Exception encountered:
billowy-cat-69904
05/23/2024, 10:13 AMrequirements.txt
i have a line -e ../../libs
, which would outside the build context of the image.