Update Dockerfile
Some checks failed
continuous-integration/drone/push Build was killed

bundle with php-pdlib
This commit is contained in:
2024-09-18 11:50:10 +00:00
committed by Andrey Artamonychev
parent a88413e622
commit dc4bf26270

View File

@@ -8,8 +8,27 @@ RUN apt update && apt install -y --no-install-recommends \
sudo \
nano \
ffmpeg \
libx11-dev libopenblas-dev liblapack-dev cmake \
&& rm -rf /var/lib/apt/lists/*
ENV LD_LIBRARY_PATH=/usr/lib/mesa-diverted/x86_64-linux-gnu/
RUN /usr/sbin/update-nvidia-cudnn -u
# install php pdlib ext.
RUN cd /tmp \
&& git clone https://github.com/davisking/dlib.git \
&& cd dlib/dlib \
&& mkdir build \
&& cd build \
&& cmake -DBUILD_SHARED_LIBS=ON .. \
&& make install
RUN cd /tmp \
&& git clone https://github.com/goodspb/pdlib.git \
&& cd pdlib \
&& phpize \
&& ./configure \
&& make install
RUN docker-php-ext-enable pdlib