When I build an image of new python application needing TensorFlow (import tensorflow), every time docker installs TensorFlow of 520 MB.
How to avoid this? Means download tensorflow only once and use it while building many images?
Dockerfile
FROM python:3
WORKDIR /usr/src/app
COPY model.py .
COPY model_08015_07680.h5 .
COPY requirements.txt .
COPY images .
COPY labels.txt .
COPY test_run.py .
RUN pip install --no-cache-dir -r requirements.txt
CMD ["python","./test_run.py"]
requirements.txt
numpy
opencv-python
tensorflow