Answer the question
In order to leave comments, you need to log in
How to install local library in docker?
When a container is created, dependencies from the pip repository are installed in the virtual environment. One of the libraries was customized locally and to check its performance, you need to use it instead of the Pip lib.
in dockerfile
.
..
....
RUN \
apk add --no-cache --virtual .build-deps \
curl \
&& \
pip install -U -r /home/httpd/app/packages \
...
Answer the question
In order to leave comments, you need to log in
Dockerfile
COPY /package_1_src /path/to/package_1/package_1_src
package_1 @ file:///path/to/package_1/package_1_src
You need to make a shared folder between the docker and the host, and install from there
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question