Skip to content

Commit 711136e

Browse files
committed
Dockerfile update.
1 parent fb41569 commit 711136e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,18 +96,18 @@ RUN apt-get install -y libreoffice libreoffice-script-provider-python
9696
RUN rm -rf /var/lib/apt/lists/*
9797

9898
# python3 packages
99-
RUN python3.11 -m pip install --upgrade pip
100-
RUN python3.11 -m pip install setuptools numpy matplotlib
101-
RUN python3.11 -m pip install wheel virtualenv cython uwsgi
102-
RUN python3.11 -m pip install opencv-python-headless
99+
RUN python3.11 -m pip install --upgrade pip --break-system-packages
100+
RUN python3.11 -m pip install setuptools numpy matplotlib --break-system-packages
101+
RUN python3.11 -m pip install wheel virtualenv cython uwsgi --break-system-packages
102+
RUN python3.11 -m pip install opencv-python-headless --break-system-packages
103103

104104
# create and copy the app
105105
RUN mkdir /ocr_service
106106
COPY ./ /ocr_service
107107
WORKDIR /ocr_service
108108

109109
# Install requirements for the app
110-
RUN python3.11 -m pip install --no-cache-dir -r ./requirements.txt
110+
RUN python3.11 -m pip install --no-cache-di --break-system-packagesr -r ./requirements.txt
111111

112112
# Now run the simple api
113113
CMD ["/bin/bash", "start_service_production.sh"]

0 commit comments

Comments
 (0)