docker-scripts/nextcloud/latest/Dockerfile

37 lines
1.6 KiB
Docker

FROM nextcloud:latest
ENV DEBIAN_FRONTEND noninteractive
##################################################################
# Build-time metadata as defined at http://label-schema.org
##################################################################
ARG BUILD_DATE=today
ARG VCS_REF=master
ARG VERSION=latest
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="Docker Scripts" \
org.label-schema.description="Image for our docker containers." \
org.label-schema.url="https://ww.epicm.org/" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/EpicMorg/docker-scripts" \
org.label-schema.vendor="EpicMorg" \
org.label-schema.version=$VERSION \
org.label-schema.schema-version="1.0"
#smb additional magic
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-latest
#addoing some utils
RUN apt update -y && apt install -y --allow-unauthenticated sudo apt-transport-https wget htop mc nano smbclient libsmbclient
#thank u, mac users. rolling back normal ZipStreammer
RUN rm -frv /var/www/html/lib/private/Streamer.php
ADD Streamer.php /var/www/html/lib/private/
#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/