pip install --no-cache-dir <package>
2
3COPY packages /packages
4RUN pip install -e /packages/jet_bridge_base
5RUN pip install -e /packages/jet_bridge 6
7RUN mkdir /jet
8VOLUME /jet
pip install --no-cache-dir <package>
1FROM jetadmin/jet-bridge-base:1.3.1
2
3COPY packages /packages
4RUN pip install -e /packages/jet_bridge_base 5RUN pip install -e /packages/jet_bridge
6
7RUN mkdir /jet
Once a package is installed, it does not need to be re-installed and the Docker cache can be leveraged instead. Since the pip cache makes the images larger and is not needed, it's better to disable it.
RUN pip3 install foobar
RUN pip3 install --no-cache-dir foobar