Update Dockerfile

This commit is contained in:
STAM 2019-09-02 17:02:46 +03:00 committed by GitHub
parent 111b521f5e
commit 757634958c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,12 +5,18 @@ ENV DEBIAN_FRONTEND noninteractive
#RUN rm /etc/apt/sources.list
#COPY sources.list /etc/apt/sources.list
RUN rm -fv /tmp/php-smbclient-latest.tar.gz
ADD php-smbclient-latest.tar.gz /tmp
RUN cat /tmp/php-smbclient-latest/etc/php/7.3/mods-available/smbclient.ini
#RUN pt update -y && apt install -y --allow-unauthenticated mc smbclient libsmbclient
#smb additional magic
RUN rm -frv /tmp/php-smbclient-latest.tar.gz && \
/tmp/php-smbclient-download.txt && \
/tmp/php-smbclient-latest.deb && \
/tmp/php-smbclient-latest /usr/local/etc/php/conf.d/smbclient.ini && \
/usr/local/lib/php/extensions/no-debug-non-zts-20180731/smbclient.so
ADD php-smbclient-latest.tar.gz /tmp
RUN cp -fv /tmp/php-smbclient-latest/etc/php/7.3/mods-available/smbclient.ini /usr/local/etc/php/conf.d/smbclient.ini && \
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-download.txt /tmp/php-smbclient-latest.deb /tmp/php-smbclient-latest
#addoing some utils
#RUN apt update -y && apt dist-upgrade -y && apt install -y --allow-unauthenticated ca-certificates gnupg sudo apt-transport-https lsb-release apt-utils locales console-cyrillic wget curl htop mc tmux iftop cmatrix iputils-ping cmatrix-xfont lsof lynx fontconfig smbclient nano libsmbclient
@ -19,7 +25,7 @@ RUN rm -fv /var/www/html/lib/private/Streamer.php
ADD Streamer.php /var/www/html/lib/private/
#smb fix
RUN rm -fv /etc/samba/smb.conf
ADD smb.conf /etc/samba/
RUN rm -fv /usr/share/samba/smb.conf
RUN rm -fv /etc/samba/smb.conf && \
/usr/share/samba/smb.conf
ADD smb.conf /etc/samba/
ADD smb.conf /usr/share/samba/