php53-apache (latest)

Published 2024-02-06 16:36:01 +03:00 by starov

Installation

docker pull gitea.optiweb.ru/public/php53-apache:latest
sha256:693d39919f946902a253e5dbc5bafaf722cc2a03fd2efc05bd26f76939699c71

Image Layers

ARG RELEASE
ARG LAUNCHPAD_BUILD_ARCH
LABEL org.opencontainers.image.ref.name=ubuntu
LABEL org.opencontainers.image.version=20.04
ADD file:4b4e122c96445546ef9fba44a4eae6ada6239edecb9eea2c807a83abaebad451 in /
CMD ["/bin/bash"]
RUN /bin/sh -c mkdir /app # buildkit
WORKDIR /app
COPY etc/apt/sources.list /etc/apt/sources.list # buildkit
RUN /bin/sh -c apt-get update && apt-get install -y gnupg2 ubuntu-keyring lsb-release curl && curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor | tee /usr/share/keyrings/nginx-archive-keyring.gpg > /dev/null && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # buildkit
COPY etc/apt/sources.list.d/nginx.list /etc/apt/sources.list.d/nginx.list # buildkit
COPY etc/apt/preferences.d/99nginx /etc/apt/preferences.d/99nginx # buildkit
RUN /bin/sh -c apt-get update && apt-get install -yq tzdata && ln -fs /usr/share/zoneinfo/Europe/Moscow /etc/localtime && dpkg-reconfigure -f noninteractive tzdata && apt-get install -y locales zlib1g libxml2 libbz2-1.0 libcurl4 libjpeg8 librabbitmq4 libcurl4 libfreetype6 libmcrypt4 libxslt1.1 libmemcached11 libzip5 libcurl3-gnutls libwebp6 libsodium23 pkg-config libonig5 zip unzip msmtp msmtp-mta ca-certificates wget apache2 apache2-utils nginx supervisor && 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 # buildkit
ENV APACHE_CONFDIR=/etc/apache2
ENV APACHE_ENVVARS=/etc/apache2/envvars
ENV LANG=ru_RU.UTF-8 LANGUAGE=ru_RU:ru LC_LANG=ru_RU.UTF-8 LC_ALL=ru_RU.UTF-8
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/*; ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR" # 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
RUN /bin/sh -c sed -i -e '/^#application\/x-httpd-php\s/s/^#//' /etc/mime.types && a2dismod -f deflate mpm_event mpm_worker && a2enmod mpm_prefork php53 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 # buildkit
COPY etc/nginx/* /etc/nginx/ # buildkit
COPY etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf # buildkit
RUN /bin/sh -c ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log # buildkit
RUN /bin/sh -c wget -P /opt http://artifact.greenred.ru/php/openssl.tar.gz && wget -P /opt http://artifact.greenred.ru/php/freetype.tar.gz && wget -P/opt http://artifact.greenred.ru/php/libmysqlclient.tar.gz && wget -P /opt http://artifact.greenred.ru/php/php53.tar.gz && tar -xvf /opt/openssl.tar.gz -C /opt && tar -xvf /opt/freetype.tar.gz -C /opt && tar -xvf /opt/libmysqlclient.tar.gz -C /opt && tar -xvf /opt/php53.tar.gz -C /opt && rm /opt/openssl.tar.gz /opt/freetype.tar.gz /opt/libmysqlclient.tar.gz /opt/php53.tar.gz && rm -rf /opt/php53/sbin/ && rm -rf /opt/php53/bin/php-cgi && mkdir -p /etc/php/5.3/conf.d && mkdir -p /etc/php/5.3/apache && mkdir -p /etc/php/5.3/cli && ln -s /opt/php53/bin/php /usr/bin/php && ln -s /opt/php53/bin/php-config /usr/bin/php-config && ln -s /opt/php53/bin/phpize /usr/bin/phpize && ln -s /opt/php53/bin/phar /usr/bin/phar && ln -s /opt/php53/bin/pecl /usr/bin/pecl && ln -s /opt/php53/bin/pear /usr/bin/pear && mkdir -p /var/lib/php/sessions && chmod -R 0737 /var/lib/php/sessions && wget -P /usr/local/bin "http://artifact.greenred.ru/php/sessionclean.tar.gz" && tar -xvf /usr/local/bin/sessionclean.tar.gz -C /usr/local/bin && rm -rf /usr/local/bin/sessionclean.tar.gz && chmod +x /usr/local/bin/sessionclean && curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer && curl -o /usr/local/bin/supercronic -fsSLO "http://artifact.greenred.ru/supercronic/supercronic-linux-amd64" && chmod +x "/usr/local/bin/supercronic" # buildkit
ENV PHP_INI_SCAN_DIR=:/app/php PHP_CONF_DIR=/etc/php/5.3
COPY etc/php/5.3/conf.d/* /etc/php/5.3/conf.d/ # buildkit
COPY etc/php/5.3/apache/* /etc/php/5.3/apache/ # buildkit
COPY etc/php/5.3/cli/* /etc/php/5.3/cli/ # buildkit
COPY etc/crontab /etc/crontab # buildkit
COPY etc/msmtprc /etc/msmtprc # buildkit
COPY etc/supervisor/supervisord.conf /etc/supervisor/ # buildkit
EXPOSE map[80/tcp:{}]
CMD ["/usr/bin/supervisord" "-c" "/etc/supervisor/supervisord.conf"]

Labels

Key Value
org.opencontainers.image.ref.name ubuntu
org.opencontainers.image.version 20.04
Details
Container
2024-02-06 16:36:01 +03:00
0
OCI / Docker
linux/amd64
148 MiB
Versions (1) View all
latest 2024-02-06