I use docker to use multiple python packages via pip install on a VM. Now, I have modified for my purpose two files within those modules. How can I make docker to look at those files instead on the files installed via pip in dockerfile? I suppose, just copying the modified python files to the working dir will not work?
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
Approach 01:
Step 1:
Install the required modules via RUN pip install as before
Step 2:
Remove the files that you will add in next step
Step 3:
Copy the modified files from your current directory to the correct path in the image.
Done
Approach 02