From 711136e27ee83fecffa90db2a2d070ee2fca3ce0 Mon Sep 17 00:00:00 2001 From: vladd-bit Date: Thu, 23 Mar 2023 16:10:58 +0000 Subject: [PATCH] Dockerfile update. --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index e7a7498..e7bb74f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -96,10 +96,10 @@ RUN apt-get install -y libreoffice libreoffice-script-provider-python RUN rm -rf /var/lib/apt/lists/* # python3 packages -RUN python3.11 -m pip install --upgrade pip -RUN python3.11 -m pip install setuptools numpy matplotlib -RUN python3.11 -m pip install wheel virtualenv cython uwsgi -RUN python3.11 -m pip install opencv-python-headless +RUN python3.11 -m pip install --upgrade pip --break-system-packages +RUN python3.11 -m pip install setuptools numpy matplotlib --break-system-packages +RUN python3.11 -m pip install wheel virtualenv cython uwsgi --break-system-packages +RUN python3.11 -m pip install opencv-python-headless --break-system-packages # create and copy the app RUN mkdir /ocr_service @@ -107,7 +107,7 @@ COPY ./ /ocr_service WORKDIR /ocr_service # Install requirements for the app -RUN python3.11 -m pip install --no-cache-dir -r ./requirements.txt +RUN python3.11 -m pip install --no-cache-di --break-system-packagesr -r ./requirements.txt # Now run the simple api CMD ["/bin/bash", "start_service_production.sh"] \ No newline at end of file