diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2020-10-14 18:04:45 +0300 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2020-10-14 19:02:54 +0300 |
commit | 46ae0c4b1e4bdabf63529ab46c0d8494d922e166 (patch) | |
tree | c3c1f3f231f69f144f50d3cf9371fe5eeb7f4262 | |
parent | f66a531433c3a338b7b006bd9ec6987e80326a14 (diff) |
build up to date php-smblibclient and enable it
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r-- | Dockerfile | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -64,9 +64,16 @@ RUN /bin/bash -c "export DEBIAN_FRONTEND=noninteractive" && \ sudo \ lbzip2 \ unattended-upgrades \ - libsmbclient-dev - -RUN pecl install smbclient && apt purge -y php-dev + libsmbclient-dev \ + unzip + +RUN wget -O /tmp/libsmbclient-php.zip https://github.com/eduardok/libsmbclient-php/archive/master.zip && \ + unzip /tmp/libsmbclient-php.zip -d /tmp && \ + cd /tmp/libsmbclient-php-master && \ + phpize && ./configure && make && sudo make install && \ + echo 'extension="smbclient.so"' >> /etc/php/7.4/cli/conf.d/60-nextcloud.ini && \ + echo 'extension="smbclient.so"' >> /etc/php/7.4/apache2/conf.d/60-nextcloud.ini && \ + apt purge -y php-dev unzip RUN apt autoremove -y |