Von Sweltering Crane, 2 Monate vorher, geschrieben in Bash.
  1. FROM nextcloud:production
  2.  
  3.  
  4. RUN apt update && apt -y install lsb-release apt-transport-https ca-certificates wget
  5. RUN wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
  6. RUN echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php7.3.list
  7.  
  8. RUN apt-get -y install apt-utils curl cmake make gcc libc-dev g++ libopenblas-dev libx11-dev pkg-config aria2 python ruby-redis memcached coturn ffmpeg imagemagick ghostscript bash vim git
  9.  
  10. RUN curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl && chmod a+rx /usr/local/bin/youtube-dl
  11. #RUN chmod 740 /var/www/html/custom_apps/ocdownloader/SERVER/fallback.*
  12. ADD turnserver.conf /etc/turnserver.conf
  13. RUN echo "TURNSERVER_ENABLED=1" >> /etc/default/coturn && service coturn restart
  14.  
  15. # DLib https://github.com/goodspb/pdlib#dependencies
  16.  
  17. RUN git clone https://github.com/davisking/dlib.git \
  18.  ;  cd dlib/dlib \
  19.  ;  mkdir build \
  20.  ;  cd build \
  21.  ;  cmake -DBUILD_SHARED_LIBS=ON .. \
  22.  ;  make \
  23.  ;  make DESTDIR=/dlib-install install \
  24.  ;  make install
  25.  
  26. # https://github.com/goodspb/pdlib#installati
  27.  
  28. RUN git clone https://github.com/goodspb/pdlib.git \
  29.   ; cd pdlib \
  30.   ; phpize \
  31.   ; ./configure \
  32.   ; make \
  33.   ; make DESTDIR=/pdlib-install install
captcha