2019-04-08 14:56:33 +03:00
|
|
|
FROM nextcloud:latest
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
2019-09-26 17:46:59 +03:00
|
|
|
|
2019-09-02 17:02:46 +03:00
|
|
|
#smb additional magic
|
2019-09-26 17:46:59 +03:00
|
|
|
ADD php-smbclient-latest.tar.gz /tmp
|
2019-09-02 17:02:46 +03:00
|
|
|
RUN cp -fv /tmp/php-smbclient-latest/etc/php/7.3/mods-available/smbclient.ini /usr/local/etc/php/conf.d/smbclient.ini && \
|
2019-09-02 17:17:39 +03:00
|
|
|
cp -fv /tmp/php-smbclient-latest/usr/lib/php/20180731/smbclient.so /usr/local/lib/php/extensions/no-debug-non-zts-20180731/smbclient.so && \
|
|
|
|
rm -frv /tmp/php-smbclient-latest.tar.gz /tmp/php-smbclient-latest
|
2019-09-02 17:13:38 +03:00
|
|
|
|
2019-09-02 13:59:09 +03:00
|
|
|
#addoing some utils
|
2019-09-02 17:12:01 +03:00
|
|
|
RUN apt update -y && apt install -y --allow-unauthenticated sudo apt-transport-https wget htop mc nano smbclient libsmbclient
|
2019-09-02 13:59:09 +03:00
|
|
|
|
|
|
|
#thank u, mac users. rolling back normal ZipStreammer
|
2020-03-24 21:21:13 +03:00
|
|
|
RUN rm -frv /usr/src/nextcloud/lib/private/Streamer.php
|
|
|
|
ADD Streamer.php /usr/src/nextcloud/lib/private/
|
|
|
|
RUN chown nobody:nogroup /usr/src/nextcloud/lib/private/Streamer.php
|
2019-09-02 14:51:21 +03:00
|
|
|
|
|
|
|
#smb fix
|
2019-09-02 17:17:39 +03:00
|
|
|
RUN rm -frv /etc/samba/smb.conf /usr/share/samba/smb.conf
|
2019-09-26 17:46:59 +03:00
|
|
|
ADD smb.conf /etc/samba/
|
2019-09-02 14:51:21 +03:00
|
|
|
ADD smb.conf /usr/share/samba/
|