bundle with php-pdlib
This commit is contained in:
21
Dockerfile
21
Dockerfile
@@ -8,8 +8,29 @@ RUN apt update && apt install -y --no-install-recommends \
|
||||
sudo \
|
||||
nano \
|
||||
ffmpeg \
|
||||
# pdlib deps
|
||||
git libx11-dev libopenblas-dev liblapack-dev cmake \
|
||||
libbz2-dev \
|
||||
&& 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-install bz2
|
||||
RUN docker-php-ext-enable pdlib bz2
|
||||
|
||||
Reference in New Issue
Block a user