diff --git a/flask_ml_api/Dockerfile b/flask_ml_api/Dockerfile
index 8bfd6859383856549ceaf8b654c4f4bafe48cb30..29aacf4114adc5713df1a3863e62f557026a5af1 100755
--- a/flask_ml_api/Dockerfile
+++ b/flask_ml_api/Dockerfile
@@ -8,7 +8,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
 RUN python3 -m venv /opt/myenv
 ENV PATH="/opt/myenv/bin:$PATH"
 
-RUN pip install --no-cache-dir Flask matplotlib scikit-learn transformers pandas sentence_transformers && \
+RUN pip install --no-cache-dir Flask && \
+    pip install --no-cache-dir matplotlib && \
+    pip install --no-cache-dir scikit-learn && \
+    pip install --no-cache-dir transformers && \
+    pip install --no-cache-dir pandas && \
+    pip install --no-cache-dir sentence_transformers && \
     pip install --no-cache-dir --upgrade setuptools wheel
 
 FROM base as build