carabonet (sha256:a4352574b12cd73955d5af91ecc6be142203bfe288ad6c0138e41c8024885f79)
Published 2026-03-06 19:17:31 +01:00 by lukniz
Installation
docker pull git.carabonet.sk/lukniz/carabonet@sha256:a4352574b12cd73955d5af91ecc6be142203bfe288ad6c0138e41c8024885f79sha256:a4352574b12cd73955d5af91ecc6be142203bfe288ad6c0138e41c8024885f79Image layers
| # debian.sh --arch 'amd64' out/ 'trixie' '@1771804800' |
| WORKDIR / |
| ENV DEBIAN_FRONTEND=noninteractive |
| COPY script.sh / # buildkit |
| COPY phpmyadmin.sh / # buildkit |
| RUN /bin/sh -c apt update # buildkit |
| RUN /bin/sh -c apt upgrade -y # buildkit |
| RUN /bin/sh -c apt install php php-ldap php-gd php-gmp php-intl php-mbstring php-mysql php-snmp php-soap php-sqlite3 php-tidy php-zip php-curl php-xml php-common -y # buildkit |
| RUN /bin/sh -c apt install mariadb-server -y # buildkit |
| RUN /bin/sh -c apt install git -y # buildkit |
| RUN /bin/sh -c sed -i 's/bind-address = 127.0.0.1/bind-address = 0.0.0.0/' /etc/mysql/mariadb.conf.d/50-server.cnf # buildkit |
| RUN /bin/sh -c sed -i 's/memory_limit = 128M/memory_limit = 512M/' /etc/php/8.4/apache2/php.ini # buildkit |
| RUN /bin/sh -c sed -i 's/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf # buildkit |
| RUN /bin/sh -c a2enmod rewrite # buildkit |
| RUN /bin/sh -c chmod +x /script.sh # buildkit |
| WORKDIR /var/www/html |
| RUN /bin/sh -c rm index.html # buildkit |
| RUN /bin/sh -c git clone https://lukniz:875c9d2c66467fdf421bf9dca53c52b7adb3a5ec@git.carabonet.sk/lukniz/carabonet.sk.git # buildkit |
| RUN /bin/sh -c chown -R www-data:www-data /var/www/html/carabonet.sk # buildkit |
| WORKDIR /etc/apache2/sites-enabled |
| RUN /bin/sh -c sed -i 's|/var/www/html|/var/www/html/carabonet.sk/public|g' 000-default.conf # buildkit |
| WORKDIR /var/www/html/carabonet.sk |
| EXPOSE [80/tcp] |
| CMD ["sh" "-c" "/script.sh && tail -f /dev/null"] |