Skip to content

Commit a4e54ec

Browse files
committed
Try using opencv from apt
1 parent 94ec9aa commit a4e54ec

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ RUN apt-get update && apt-get install -y \
1212
unzip \
1313
libpq-dev postgresql-client postgresql-client-common python3-psycopg2 \
1414
libgl1-mesa-dev libgtk2.0-dev libatlas-base-dev \
15+
libopencv-dev python3-opencv \
1516
&& rm -rf /var/lib/apt/lists/*
1617

1718
# set locale
@@ -39,10 +40,6 @@ RUN wget https://github.com/gramps-project/addons/archive/refs/heads/master.zip
3940
&& unzip -p master.zip addons-master/gramps$GRAMPS_VERSION/download/PostgreSQL.addon.tgz | \
4041
tar -xvz -C /root/.gramps/gramps$GRAMPS_VERSION/plugins && rm master.zip
4142

42-
# install OpenCV
43-
RUN python3 -m pip install --no-cache-dir --extra-index-url https://www.piwheels.org/simple \
44-
opencv-python
45-
4643
# install gunicorn
4744
RUN python3 -m pip install --no-cache-dir --extra-index-url https://www.piwheels.org/simple \
4845
gunicorn

0 commit comments

Comments
 (0)