File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
docker/ubuntu-22.04_php-8.2_opencv-4.5.0 Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM ubuntu:22.04
2+
3+ RUN apt update && apt install -y wget pkg-config cmake git checkinstall
4+
5+ RUN wget https://raw.githubusercontent.com/php-opencv/php-opencv-packages/master/opencv_4.5.0_amd64.deb && dpkg -i opencv_4.5.0_amd64.deb && rm opencv_4.5.0_amd64.deb
6+
7+ RUN apt update && apt install -y software-properties-common && add-apt-repository ppa:ondrej/php && apt update && export DEBIAN_FRONTEND=noninteractive && apt install -y php8.2 php8.2-dev
8+
9+ RUN git clone https://github.com/php-opencv/php-opencv.git
10+
11+ RUN cd php-opencv && phpize && ./configure --with-php-config=/usr/bin/php-config && make
12+
13+ # build deb package:
14+
15+ RUN cd php-opencv && checkinstall --default --type debian --install=no --pkgname php-opencv --pkgversion "8.2-4.5.0" --pkglicense "Apache 2.0" --pakdir ~ --maintainer "php-opencv" --addso --autodoinst make install && make test
16+
17+ RUN echo "extension=opencv.so" > /etc/php/8.2/cli/conf.d/opencv.ini
You can’t perform that action at this time.
0 commit comments