php72-apache (latest)
Published 2026-06-17 16:38:43 +03:00 by starov
Installation
docker pull gitea.optiweb.ru/public/php72-apache:latestsha256:f32dd4326e4e4cb4377cc8b9b1a2087cea73e8f1de6a7672b6f8c813cbc6e914
About this package
The Ubuntu container image maintained by Canonical
Ubuntu is a Debian-based Linux operating system that runs from the desktop to the cloud, to all your internet connected things.
It is the world's most popular operating system across public clouds and OpenStack clouds.
It is the number one platform for containers; from Docker to Kubernetes to LXD, Ubuntu can run your containers at scale.
Fast, secure and simple, Ubuntu powers millions of PCs worldwide.
Image Layers
| umoci raw add-layer --image /home/buildd/rockcraft-ubuntu-5691f940e215a35dc9b91fc1887cae39/images/ubuntu:rockcraft-base /home/buildd/rockcraft-ubuntu-5691f940e215a35dc9b91fc1887cae39/images/.temp_layer.4415.tar --tag 26.04 |
| umoci config --image /home/buildd/rockcraft-ubuntu-5691f940e215a35dc9b91fc1887cae39/images/ubuntu:26.04 --clear=config.entrypoint --clear=config.cmd |
| umoci config --image /home/buildd/rockcraft-ubuntu-5691f940e215a35dc9b91fc1887cae39/images/ubuntu:26.04 --clear=config.cmd --config.cmd /bin/bash |
| umoci config --image /home/buildd/rockcraft-ubuntu-5691f940e215a35dc9b91fc1887cae39/images/ubuntu:26.04 --config.env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| umoci config --image /home/buildd/rockcraft-ubuntu-5691f940e215a35dc9b91fc1887cae39/images/ubuntu:26.04 --clear=config.labels --config.label org.opencontainers.image.version=26.04 --config.label org.opencontainers.image.title=ubuntu --config.label org.opencontainers.image.created=2026-04-21T17:23:54.324551+00:00 --config.label org.opencontainers.image.description=The Ubuntu container image maintained by Canonical Ubuntu is a Debian-based Linux operating system that runs from the desktop to the cloud, to all your internet connected things. It is the world's most popular operating system across public clouds and OpenStack clouds. It is the number one platform for containers; from Docker to Kubernetes to LXD, Ubuntu can run your containers at scale. Fast, secure and simple, Ubuntu powers millions of PCs worldwide. |
| umoci config --image /home/buildd/rockcraft-ubuntu-5691f940e215a35dc9b91fc1887cae39/images/ubuntu:26.04 --clear=manifest.annotations --manifest.annotation org.opencontainers.image.version=26.04 --manifest.annotation org.opencontainers.image.title=ubuntu --manifest.annotation org.opencontainers.image.created=2026-04-21T17:23:54.324551+00:00 --manifest.annotation org.opencontainers.image.description=The Ubuntu container image maintained by Canonical Ubuntu is a Debian-based Linux operating system that runs from the desktop to the cloud, to all your internet connected things. It is the world's most popular operating system across public clouds and OpenStack clouds. It is the number one platform for containers; from Docker to Kubernetes to LXD, Ubuntu can run your containers at scale. Fast, secure and simple, Ubuntu powers millions of PCs worldwide. |
| umoci raw add-layer --image /home/buildd/rockcraft-ubuntu-5691f940e215a35dc9b91fc1887cae39/images/ubuntu:26.04 /home/buildd/rockcraft-ubuntu-5691f940e215a35dc9b91fc1887cae39/images/.temp_layer.control_data.4415.tar |
| RUN /bin/sh -c mkdir /app # buildkit |
| WORKDIR /app |
| ENV APACHE_CONFDIR=/etc/apache2 |
| ENV APACHE_ENVVARS=/etc/apache2/envvars |
| ENV LANG=ru_RU.UTF-8 |
| ENV LANGUAGE=ru_RU:ru |
| ENV LC_LANG=ru_RU.UTF-8 |
| ENV LC_ALL=ru_RU.UTF-8 |
| ENV PHP_INI_SCAN_DIR=:/app/php |
| ENV PHP_CONF_DIR=/etc/php/7.2 |
| ENV COMPOSER_HOME=/app/.composer |
| ENV SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.2.46/supercronic-linux-amd64 |
| ENV PATH=/app/vendor/bin:/app/.composer/vendor/bin:/app/.local/bin:/app/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| RUN /bin/sh -c apt-get update && apt-get install -y gnupg2 ubuntu-keyring lsb-release ca-certificates curl && sed -i 's|http://archive.ubuntu.com/ubuntu|https://mirror.yandex.ru/ubuntu|g; s|http://security.ubuntu.com/ubuntu|https://mirror.yandex.ru/ubuntu|g' /etc/apt/sources.list.d/ubuntu.sources && curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor | tee /usr/share/keyrings/nginx-archive-keyring.gpg > /dev/null && curl -fsSL https://packages.fluentbit.io/fluentbit.key | gpg --dearmor > /usr/share/keyrings/fluentbit-keyring.gpg && CODENAME=$(lsb_release -cs) && echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] https://nginx.org/packages/ubuntu ${CODENAME} nginx" | tee /etc/apt/sources.list.d/nginx.list && printf 'Package: *\nPin: origin nginx.org\nPin-Priority: 900\n' > /etc/apt/preferences.d/99nginx && echo "deb [signed-by=/usr/share/keyrings/fluentbit-keyring.gpg] https://packages.fluentbit.io/ubuntu/${CODENAME} ${CODENAME} main" > /etc/apt/sources.list.d/fluent-bit.list && apt-get update && apt-get install -y --no-install-recommends pkg-config zlib1g libxml2-16 libbz2-1.0 libjpeg8 libcurl4t64 libcurl3t64-gnutls libmcrypt4 libfreetype6 libicu78 libzstd1 liblz4-1 libwebp7 libpq5 libxslt1.1 librabbitmq4 libmemcached11t64 libonig5 libsodium23 liblz4-1 liblzf1 libzip5 libyaml-0-2 locales zip unzip catdoc msmtp msmtp-mta tzdata wget apache2 apache2-utils nginx supervisor fluent-bit && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && sed -i -e 's/# ru_RU.UTF-8 UTF-8/ru_RU.UTF-8 UTF-8/' /etc/locale.gen && locale-gen && ln -fs /usr/share/zoneinfo/Europe/Moscow /etc/localtime && dpkg-reconfigure -f noninteractive tzdata # buildkit |
| COPY etc/apache2/mods-available/* /etc/apache2/mods-available/ # buildkit |
| COPY etc/apache2/sites-available/* /etc/apache2/sites-available/ # buildkit |
| COPY etc/apache2/ports.conf /etc/apache2/ports.conf # buildkit |
| COPY etc/apache2/apache2.conf /etc/apache2/apache2.conf # buildkit |
| COPY etc/nginx/nginx.conf /etc/nginx/nginx.conf # buildkit |
| COPY etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf # buildkit |
| COPY etc/nginx/proxy.conf /etc/nginx/proxy.conf # buildkit |
| COPY usr/local/bin/sessionclean /usr/local/bin/sessionclean # buildkit |
| COPY usr/local/bin/sup-run /usr/local/bin/sup-run # buildkit |
| RUN /bin/sh -c set -eux; sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; . "$APACHE_ENVVARS"; for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" ; do rm -rvf "$dir"; mkdir -p "$dir"; chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; chmod 777 "$dir"; done; rm -rvf /var/www/html/* # buildkit |
| RUN /bin/sh -c a2dismod -f deflate mpm_event mpm_worker && a2enmod mpm_prefork php72 rewrite remoteip && a2dissite 000-default && rm -rf /etc/apache2/sites-available/000-default.conf && rm -rf /etc/apache2/sites-available/default-ssl.conf && a2ensite default && wget -P /opt https://gitea.optiweb.ru/public/php-binary/releases/download/build-20260526-203853/openssl-1.1.1w.tar.gz && tar -xvf /opt/openssl-1.1.1w.tar.gz -C /opt && rm /opt/openssl-1.1.1w.tar.gz && echo "/opt/openssl-1.1.1w/lib" > /etc/ld.so.conf.d/openssl-1.1.1w.conf && wget -P /opt https://gitea.optiweb.ru/public/php-binary/releases/download/build-20260526-203853/freetype-2.10.1.tar.gz && tar -xvf /opt/freetype-2.10.1.tar.gz -C /opt && rm /opt/freetype-2.10.1.tar.gz && echo "/opt/freetype-2.10.1/lib" > /etc/ld.so.conf.d/freetype-2.10.1.conf && wget -P /opt https://gitea.optiweb.ru/public/php-binary/releases/download/build-20260526-203853/libxml2-2.9.14.tar.gz && tar -xvf /opt/libxml2-2.9.14.tar.gz -C /opt && rm /opt/libxml2-2.9.14.tar.gz && echo "/opt/libxml2-2.9.14/lib" > /etc/ld.so.conf.d/libxml2-2.9.14.conf && wget -P /opt https://gitea.optiweb.ru/public/php-binary/releases/download/build-20260526-203853/icu-66_1.tar.gz && tar -xvf /opt/icu-66_1.tar.gz -C /opt && rm /opt/icu-66_1.tar.gz && echo "/opt/icu-66_1/lib" > /etc/ld.so.conf.d/icu-66.conf && ldconfig && wget -P /opt https://gitea.optiweb.ru/public/php-binary/releases/download/build-20260526-203853/php72.tar.gz && tar -xvf /opt/php72.tar.gz -C /opt && rm /opt/php72.tar.gz && rm -rf /opt/php72/sbin/ && rm -rf /opt/php72/bin/php-cgi && mkdir -p /etc/php/7.2/conf.d && mkdir -p /etc/php/7.2/apache && mkdir -p /etc/php/7.2/cli && ln -s /opt/php72/bin/php /usr/bin/php && ln -s /opt/php72/bin/php-config /usr/bin/php-config && ln -s /opt/php72/bin/phpize /usr/bin/phpize && ln -s /opt/php72/bin/phar /usr/bin/phar && mkdir -p /var/lib/php/sessions && chmod -R 1777 /var/lib/php/sessions && curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer && chmod +x /usr/local/bin/sessionclean && chmod +x /usr/local/bin/sup-run && curl -fsSL "$SUPERCRONIC_URL" -o /usr/local/bin/supercronic && chmod +x /usr/local/bin/supercronic # buildkit |
| COPY etc/php/7.2/conf.d/* /etc/php/7.2/conf.d/ # buildkit |
| COPY etc/php/7.2/apache/* /etc/php/7.2/apache/ # buildkit |
| COPY etc/php/7.2/cli/* /etc/php/7.2/cli/ # buildkit |
| COPY etc/crontab /etc/crontab # buildkit |
| COPY etc/supervisor/supervisord.conf /etc/supervisor/ # buildkit |
| COPY etc/fluent-bit/ /etc/fluent-bit/ # buildkit |
| COPY entrypoint.sh /entrypoint.sh # buildkit |
| RUN /bin/sh -c chmod +x /entrypoint.sh # buildkit |
| EXPOSE [80/tcp] |
| ENTRYPOINT ["/entrypoint.sh"] |
| CMD ["/usr/bin/supervisord" "-c" "/etc/supervisor/supervisord.conf"] |
Labels
| Key | Value |
|---|---|
| org.opencontainers.image.created | 2026-04-21T17:23:54.324551+00:00 |
| org.opencontainers.image.description | The Ubuntu container image maintained by Canonical Ubuntu is a Debian-based Linux operating system that runs from the desktop to the cloud, to all your internet connected things. It is the world's most popular operating system across public clouds and OpenStack clouds. It is the number one platform for containers; from Docker to Kubernetes to LXD, Ubuntu can run your containers at scale. Fast, secure and simple, Ubuntu powers millions of PCs worldwide. |
| org.opencontainers.image.title | ubuntu |
| org.opencontainers.image.version | 26.04 |