Couchbase php sdk with docker

hello

i am using couchbase php sdk with docker on my ubuntu 20.10 machine. The problem is everything works fine when i use couchbase pecl extension 3.1.2 with php 7.3.28 but in my case i need sdk version 2.6 .When i use 2.6 on my pecl extension command i get this error

mp/pear/temp/couchbase/couchbase.c -fPIC -DPIC -o .libs/couchbase.o
In file included from /tmp/pear/temp/couchbase/couchbase.c:17:
/tmp/pear/temp/couchbase/couchbase.h:29:10: fatal error: libcouchbase/api3.h: No such file or directory
#include <libcouchbase/api3.h>
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:195: couchbase.lo] Error 1
ERROR: `make’ failed
ERROR: Service ‘php’ failed to build: The command ‘/bin/sh -c pecl install https://packages.couchbase.com/clients/php/couchbase-2.6.0.tgz’ returned a non-zero code: 1

Here is my Dockerfile

#FROM php:7.3.28-apache
FROM php:7.2-apache

RUN apt-get update

RUN apt-get install -y wget lsb-release gnupg2

RUN wget https://packages.couchbase.com/clients/c/repos/deb/couchbase.key

RUN apt-key  add couchbase.key

COPY ./config/couchbase.list /etc/apt/sources.list.d

RUN apt-get update

RUN apt search libcouchbase

RUN apt install -y libcouchbase3 libcouchbase-dev libcouchbase3-tools libcouchbase-dbg libcouchbase3-libev libcouchbase3-libevent

COPY ./config/php/php.ini /usr/local/etc/php/

RUN pecl install https://packages.couchbase.com/clients/php/couchbase-2.6.0.tgz 

WORKDIR /var/www/html

COPY ./backend/ /var/www/html/

EXPOSE 80

Here is couchbase.list file content

deb https://packages.couchbase.com/clients/c/repos/deb/ubuntu1804 bionic bionic/main

Plus I added couchbase.so file in php.ini already

Thanks

In case if some one faced same here i have solved it

FROM php:7.3.28-apache

RUN apt-get update

RUN apt-get install -y wget lsb-release gnupg2

RUN echo “deb http://packages.couchbase.com/ubuntu bionic bionic/main” | tee /etc/apt/sources.list.d/couchbase.list

RUN wget -O - http://packages.couchbase.com/ubuntu/couchbase.key | apt-key add -

RUN apt-get update

#RUN apt search libcouchbase

RUN apt-get install -y libcouchbase2-libevent libcouchbase-dev

RUN apt-get update

RUN pecl install https://packages.couchbase.com/clients/php/couchbase-2.6.2.tgz

COPY ./config/php/php.ini /usr/local/etc/php/

WORKDIR /var/www/html

COPY ./backend/ /var/www/html/

EXPOSE 80

Thanks @muhammad_ibrahim