| ADD file:b18b4c32dd8042f45097997c732dc29b3917fd7d5f337f9e772eee5875fbe6f1 in / |
| CMD ["bash"] |
| LABEL description=SYPHUNO |
| WORKDIR /var/www/html |
| RUN /bin/sh -c apt-get update && apt install -y lsb-release apt-transport-https ca-certificates wget # buildkit |
| RUN /bin/sh -c echo "deb [trusted=yes] https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php.list # buildkit |
| RUN /bin/sh -c apt-get update -y # buildkit |
| RUN /bin/sh -c apt install -y apache2 git pkg-config php8.3 php8.3-dev php8.3-mbstring libapache2-mod-php8.3 rrdtool librrd-dev nano # buildkit |
| RUN /bin/sh -c a2enmod rewrite deflate headers expires # buildkit |
| RUN /bin/sh -c pecl install rrd # buildkit |
| RUN /bin/sh -c echo "extension=rrd.so" > /etc/php/8.3/mods-available/rrd.ini # buildkit |
| RUN /bin/sh -c phpenmod rrd mbstring # buildkit |
| RUN /bin/sh -c sed -e '/<Directory \/var\/www\/>/,/<\/Directory>/s/AllowOverride None/AllowOverride All/' -i /etc/apache2/apache2.conf # buildkit |
| RUN /bin/sh -c rm index.html # buildkit |
| RUN /bin/sh -c git clone https://github.com/mbolli/nfsen-ng.git . # buildkit |
| COPY settings.php backend/settings/settings.tmpl # buildkit |
| COPY entrypoint.sh /tmp/ # buildkit |
| RUN /bin/sh -c chown -R www-data:www-data . # buildkit |
| RUN /bin/sh -c chmod +x backend/cli.php /tmp/entrypoint.sh # buildkit |
| RUN /bin/sh -c curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer # buildkit |
| ENV PROFILES_DATA_PATH=/var/nfdump/profiles-data/ |
| ENV APACHE_RUN_USER=www-data |
| ENV APACHE_RUN_GROUP=www-data |
| ENV APACHE_LOG_DIR=/var/log/apache2 |
| ENV APACHE_PID_FILE=/var/run/apache2.pid |
| ENV APACHE_RUN_DIR=/var/run/apache2 |
| ENV APACHE_LOCK_DIR=/var/lock/apache2 |
| ENV APACHE_LOG_DIR=/var/log/apache2 |
| VOLUME [/var/nfdump/profiles-data] |
| EXPOSE map[80/tcp:{}] |
| ENTRYPOINT ["/tmp/entrypoint.sh"] |