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 |
ENV LANG=ru_RU.UTF-8 LANGUAGE=ru_RU:ru LC_LANG=ru_RU.UTF-8 LC_ALL=ru_RU.UTF-8 PHP_INI_SCAN_DIR=:/app/php PHP_CONF_DIR=/etc/php/8.2 |
COPY etc/apt/sources.list /etc/apt/sources.list # 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 curl wget lsb-release 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 && wget -P /opt http://artifact.greenred.ru/php/php82.tar.gz && tar -xvf /opt/php82.tar.gz -C /opt && rm /opt/php82.tar.gz && rm -rf /opt/php82/sbin/ && rm -rf /opt/php82/libs/ && rm -rf /opt/php82/bin/php-cgi && mkdir -p /etc/php/8.2/conf.d && mkdir -p /etc/php/8.2/cli && ln -s /opt/php82/bin/php /usr/bin/php && ln -s /opt/php82/bin/php-config /usr/bin/php-config && ln -s /opt/php82/bin/phpize /usr/bin/phpize && ln -s /opt/php82/bin/phar /usr/bin/phar && ln -s /opt/php82/bin/pecl /usr/bin/pecl && ln -s /opt/php82/bin/pear /usr/bin/pear && 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 |
COPY etc/php/8.2/conf.d/* /etc/php/8.2/conf.d/ # buildkit |
COPY etc/php/8.2/cli/* /etc/php/8.2/cli/ # buildkit |
COPY etc/msmtprc /etc/msmtprc # buildkit |
COPY etc/supervisor/supervisord.conf /etc/supervisor/ # buildkit |
CMD ["/usr/bin/supervisord" "-c" "/etc/supervisor/supervisord.conf"] |