iqms (sha256:476267fb0b8b712aea36ad778ce3478a60a0c8a0c1c425a1a7bf0156606d96ee)
Published 2026-06-30 13:11:25 +02:00 by lukniz
Installation
docker pull git.carabonet.sk/lukniz/iqms@sha256:476267fb0b8b712aea36ad778ce3478a60a0c8a0c1c425a1a7bf0156606d96eesha256:476267fb0b8b712aea36ad778ce3478a60a0c8a0c1c425a1a7bf0156606d96eeImage layers
| # debian.sh --arch 'arm64' out/ 'trixie' '@1782172800' |
| WORKDIR / |
| ENV DEBIAN_FRONTEND=noninteractive |
| RUN /bin/sh -c apt update # buildkit |
| RUN /bin/sh -c apt upgrade -y # buildkit |
| RUN /bin/sh -c apt install -y dos2unix # buildkit |
| RUN /bin/sh -c apt install -y php php-pdo php-ldap php-gd php-xml php-gmp php-intl php-mbstring php-mysql php-common postfix composer # buildkit |
| RUN /bin/sh -c a2enmod rewrite # buildkit |
| RUN /bin/sh -c sed -i 's/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf # buildkit |
| RUN /bin/sh -c echo "ServerName localhost" >> /etc/apache2/apache2.conf # buildkit |
| RUN /bin/sh -c sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 1000M/' /etc/php/8.4/apache2/php.ini # buildkit |
| RUN /bin/sh -c sed -i 's/post_max_size = 8M/post_max_size = 1000M/' /etc/php/8.4/apache2/php.ini # buildkit |
| RUN /bin/sh -c sed -i 's/memory_limit = 128M/memory_limit = 1024M/' /etc/php/8.4/apache2/php.ini # buildkit |
| RUN /bin/sh -c sed -i 's#;date.timezone =#date.timezone = Europe/Bratislava#' /etc/php/8.4/apache2/php.ini # buildkit |
| RUN /bin/sh -c sed -i 's#;date.timezone =#date.timezone = Europe/Bratislava#' /etc/php/8.4/cli/php.ini # buildkit |
| COPY files/script.sh / # buildkit |
| COPY files/main.cf /etc/postfix/ # buildkit |
| RUN /bin/sh -c dos2unix /script.sh # buildkit |
| RUN /bin/sh -c dos2unix /etc/postfix/main.cf # buildkit |
| COPY app/ /var/www/html # buildkit |
| RUN /bin/sh -c composer install --no-dev --no-scripts --no-interaction --prefer-dist -d /var/www/html # buildkit |
| RUN /bin/sh -c chmod +x /script.sh # buildkit |
| RUN /bin/sh -c rm /var/www/html/index.html # buildkit |
| RUN /bin/sh -c chown www-data:www-data /var/www/html/ -R # buildkit |
| RUN /bin/sh -c chmod 775 /var/www/html/ -R # buildkit |
| RUN /bin/sh -c mkdir /logs # buildkit |
| RUN /bin/sh -c chown www-data:www-data /logs -R # buildkit |
| RUN /bin/sh -c chmod 775 /logs -R # buildkit |
| WORKDIR /var/www/html/ |
| EXPOSE [80/tcp] |
| ARG APP_VERSION=v1.7.6 |
| ARG GIT_SHA=fe18a3d |
| RUN |2 APP_VERSION=v1.7.6 GIT_SHA=fe18a3d /bin/sh -c echo "<?php define('APP_BRANCH', '$APP_VERSION'); define('GIT_COMMIT', '$GIT_SHA'); ?>" > /var/www/html/version.php # buildkit |
| CMD ["sh" "-c" "/script.sh && tail -f /dev/null"] |