Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/univention-app.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2020-10-14 18:04:45 +0300
committerArthur Schiwon <blizzz@arthur-schiwon.de>2020-10-14 19:02:54 +0300
commit46ae0c4b1e4bdabf63529ab46c0d8494d922e166 (patch)
treec3c1f3f231f69f144f50d3cf9371fe5eeb7f4262 /Dockerfile
parentf66a531433c3a338b7b006bd9ec6987e80326a14 (diff)
build up to date php-smblibclient and enable it
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile13
1 files changed, 10 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index ef766cd..d8112a6 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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