docker-scripts/nextcloud/latest/Dockerfile

38 lines
1.1 KiB
Docker

FROM nextcloud:latest
ENV DEBIAN_FRONTEND noninteractive
#adding normal sources list
RUN rm /etc/apt/sources.list
COPY sources.list /etc/apt/sources.list
#addoing some utils
RUN apt update -y && \
apt dist-upgrade -y && \
apt install -y --allow-unauthenticated \
apt-transport-https \
curl \
ca-certificates \
nload \
htop \
mc \
nano \
sudo \
wget
#installing php repo + smbclient
RUN wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
RUN sh -c 'echo "deb https://packages.sury.org/php/ buster main" > /etc/apt/sources.list.d/php.list'
RUN apt update -y && apt install -y --allow-unauthenticated smbclient libsmbclient libsmbclient-dev
RUN pecl install smbclient
RUN docker-php-ext-enable smbclient
#thank u, mac users. rolling back normal ZipStreammer
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
#smb fix
RUN rm -frv /etc/samba/smb.conf /usr/share/samba/smb.conf
ADD smb.conf /etc/samba/
ADD smb.conf /usr/share/samba/