docker-scripts/nextcloud/latest/Dockerfile

38 lines
1.1 KiB
Docker
Raw Normal View History

2019-04-08 14:56:33 +03:00
FROM nextcloud:latest
ENV DEBIAN_FRONTEND noninteractive
2019-09-26 17:46:59 +03:00
2020-07-17 17:53:53 +03:00
#adding normal sources list
RUN rm /etc/apt/sources.list
COPY sources.list /etc/apt/sources.list
2019-09-02 17:13:38 +03:00
2019-09-02 13:59:09 +03:00
#addoing some utils
2020-07-17 17:53:53 +03:00
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
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/