znuny-debian/znuny-deb (latest)
Published 2024-11-20 14:12:50 +01:00 by snoopy
Installation
docker pull git.koeln.ccc.de/snoopy/znuny-debian/znuny-deb:latest
sha256:c694f3c5ec4c3fb3e66125aab128d1f04e9e799301dd15a6a92762099cd8bebe
Image Layers
ADD rootfs.tar.xz / # buildkit |
CMD ["bash"] |
RUN apt update -y && apt upgrade -y |
RUN apt install -y apache2 tar bash-completion wget cron gnupg |
RUN wget https://download.znuny.org/releases/znuny-7.1.3.tar.gz |
RUN tar xfz znuny-7.1.3.tar.gz |
RUN rm znuny-7.1.3.tar.gz |
RUN ln -s /opt/znuny-7.1.3 /opt/znuny |
RUN useradd -d /opt/znuny -c 'Znuny user' -g www-data -s /bin/bash -M -N znuny |
RUN cp /opt/znuny/Kernel/Config.pm.dist /opt/znuny/Kernel/Config.pm |
RUN /opt/znuny/bin/znuny.SetPermissions.pl |
RUN apt install -y libapache2-mod-perl2 libdbd-mysql-perl libtimedate-perl libnet-dns-perl libnet-ldap-perl libio-socket-ssl-perl libpdf-api2-perl libsoap-lite-perl libtext-csv-xs-perl libjson-xs-perl libapache-dbi-perl libxml-libxml-perl libxml-libxslt-perl libyaml-perl libarchive-zip-perl libcrypt-eksblowfish-perl libencode-hanextra-perl libmail-imapclient-perl libtemplate-perl libdatetime-perl libmoo-perl bash-completion libyaml-libyaml-perl libjavascript-minifier-xs-perl libcss-minifier-xs-perl libauthen-sasl-perl libauthen-ntlm-perl libhash-merge-perl libical-parser-perl libspreadsheet-xlsx-perl libdata-uuid-perl |
RUN ln -s /opt/znuny/scripts/apache2-httpd.include.conf /etc/apache2/conf-available/znuny.conf |
RUN a2dismod mpm_event |
RUN a2enmod mpm_prefork headers filter perl |
RUN a2enconf znuny |
RUN for foo in *.dist; do cp $foo `basename $foo .dist`; done |
RUN bin/Cron.sh start |
COPY ./scripts/entrypoint.sh /entrypoint.sh |
RUN ["chmod", "+x", "/entrypoint.sh"] |