NextCloud FPM based image including: - pdlib - dlib - ffmpeg
505
FROM nextcloud:fpm
RUN apt update \
&& apt install -y \
wget gnupg2 unzip libx11-dev \
git cmake libavdevice-dev libavfilter-dev libavformat-dev libavcodec-dev libswresample-dev libswscale-dev libavutil-dev libjxl-dev libopenblas-dev liblapack-dev \
ffmpeg
# Enable repo and install dlib
RUN git clone https://github.com/davisking/dlib.git \
&& cd dlib/dlib \
&& mkdir build \
&& cd build \
&& cmake -DBUILD_SHARED_LIBS=ON .. \
&& make \
&& make install \
&& cd \
&& rm -rf dlib
RUN apt update \
&& apt install -y libdlib-dev
# Install pdlib extension
RUN wget https://github.com/goodspb/pdlib/archive/master.zip \
&& mkdir -p /usr/src/php/ext/ \
&& unzip -d /usr/src/php/ext/ master.zip \
&& rm master.zip
RUN docker-php-ext-install pdlib-master
# Install bz2 to uncompress models
RUN apt install -y libbz2-dev
RUN docker-php-ext-install bz2
# Increase memory limits
RUN echo memory_limit=1024M > /usr/local/etc/php/conf.d/memory-limit.ini
# These last lines are just for testing the extension.. You can delete them.
RUN wget https://github.com/matiasdelellis/pdlib-min-test-suite/archive/master.zip \
&& unzip -d /tmp/ master.zip \
&& rm master.zip
RUN cd /tmp/pdlib-min-test-suite-master \
&& make
Content type
Image
Digest
sha256:a24605320…
Size
1009.4 MB
Last updated
about 1 year ago
docker pull baspar/nextcloud-fpm