anton

api (591a67cc8302)

Published 2026-10-25 04:33:26 +01:00 by reton007

Installation

docker pull git.zoomzilla.ru/anton/api:591a67cc8302
sha256:731e7dd7e096e183eaed48663317c28f48cb5de6b5417b71ad8d74db4dd7cff1

Image Layers

ARG RELEASE
ARG LAUNCHPAD_BUILD_ARCH
LABEL org.opencontainers.image.version=22.04
ADD file:b6c410e935243e5623135210c34358091e8af5ff14851cb0f67195733b55d391 in /
CMD ["/bin/bash"]
ARG UBUNTU=jammy
ARG PHP_VERSION=8.3
ENV TERM=linux
ENV DEBIAN_FRONTEND=noninteractive
RUN |2 UBUNTU=jammy PHP_VERSION=8.3 /bin/sh -c test -n "${PHP_VERSION}" || { echo "PHP_VERSION build arg is required" >&2; exit 1; } && OPCACHE="" && if dpkg --compare-versions "${PHP_VERSION}" lt 8.5; then OPCACHE="php${PHP_VERSION}-opcache"; fi && apt-get update && apt-get install -y --no-install-recommends gnupg && echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu ${UBUNTU} main" > /etc/apt/sources.list.d/ondrej-php.list && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C && apt-get update && apt-get -y --no-install-recommends install ca-certificates curl unzip php${PHP_VERSION}-apcu php${PHP_VERSION}-cli php${PHP_VERSION}-curl php${PHP_VERSION}-mbstring ${OPCACHE} php${PHP_VERSION}-readline php${PHP_VERSION}-xml php${PHP_VERSION}-zip && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* ~/.composer # buildkit
COPY /usr/bin/composer /usr/bin/composer # buildkit
CMD ["php" "-a"]
ARG PHP_VERSION=8.3
RUN |2 UBUNTU=jammy PHP_VERSION=8.3 /bin/sh -c apt-get update && apt-get -y --no-install-recommends install php${PHP_VERSION}-fpm && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* && ln -s /usr/sbin/php-fpm${PHP_VERSION} /usr/sbin/php-fpm # buildkit
STOPSIGNAL SIGQUIT
COPY overrides.conf /etc/php/8.3/fpm/pool.d/z-overrides.conf # buildkit
CMD ["/usr/sbin/php-fpm" "-O"]
EXPOSE [9000/tcp]
LABEL ru.error500.docker.image.source=https://github.com/bitrixdock/bitrixdock
RUN /bin/sh -c apt-get update && apt-get -y --no-install-recommends install php8.3-dev php8.3-gd php8.3-imagick php8.3-intl php8.3-mbstring php8.3-mcrypt php8.3-memcache php8.3-memcached php8.3-opcache php8.3-redis php8.3-curl php8.3-soap php8.3-zip php8.3-pdo php8.3-pgsql cron ca-certificates procps supervisor iputils-ping poppler-utils git unzip && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* # buildkit
RUN /bin/sh -c php -r 'exit(PHP_VERSION_ID >= 80336 ? 0 : 1);' # buildkit
RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends curl xz-utils && apt-get clean # buildkit
RUN /bin/sh -c curl -L https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-linux64-gpl.tar.xz | tar -xJ --strip-components=2 -C /usr/local/bin ffmpeg-master-latest-linux64-gpl/bin/ffmpeg && chmod a+x /usr/local/bin/ffmpeg # buildkit
RUN /bin/sh -c rm -rf /etc/php/8.3/fpm/pool.d/* # buildkit
COPY ./.docker/php.ini /etc/php/8.3/fpm/php.ini # buildkit
COPY ./.docker/php.ini /etc/php/8.3/cli/php.ini # buildkit
COPY ./.docker/php-fpm.conf /etc/php/8.3/fpm/php-fpm.conf # buildkit
COPY ./.docker/app.pool.conf /etc/php/8.3/fpm/pool.d/www.conf # buildkit
COPY /usr/bin/composer /usr/bin/composer # buildkit
RUN /bin/sh -c usermod -u 1000 www-data && mkdir /app # buildkit
RUN /bin/sh -c chown www-data:www-data /var/lib/php/sessions # buildkit
WORKDIR /var/www
RUN /bin/sh -c [ -d /etc/supervisor/conf.d ] || mkdir -vp /etc/supervisor/conf.d # buildkit
ARG WORKDIR=/srv/www/api
WORKDIR /srv/www/api
COPY composer.json composer.lock ./ # buildkit
RUN |1 WORKDIR=/srv/www/api /bin/sh -c git config --global url."https://github.com/".insteadOf "git@github.com:" && git config --global url."https://github.com/".insteadOf "ssh://git@github.com/" && COMPOSER_ALLOW_SUPERUSER=1 composer install --no-interaction --prefer-dist --no-scripts --no-autoloader && find vendor -type d \( -name test -o -name tests \) -prune -exec rm -rf {} + && rm -rf /root/.composer/cache /root/.cache/composer # buildkit
COPY ./ ./ # buildkit
RUN |1 WORKDIR=/srv/www/api /bin/sh -c COMPOSER_ALLOW_SUPERUSER=1 composer dump-autoload --optimize --no-interaction # buildkit
COPY .docker/cronapi /etc/cronapi.conf # buildkit
COPY .docker/entrypoint.sh /entrypoint.sh # buildkit
COPY .docker/supervisord.conf /etc/supervisor/supervisord.conf # buildkit
COPY .docker/supervisor.conf.d/ /etc/supervisor/conf.d/ # buildkit
RUN |1 WORKDIR=/srv/www/api /bin/sh -c mkdir -p /etc/php/8.3/queue-limit.d # buildkit
COPY .docker/php-queue-limit.ini /etc/php/8.3/queue-limit.d/memory-limit.ini # buildkit
RUN |1 WORKDIR=/srv/www/api /bin/sh -c sed -i 's/\r$//' /entrypoint.sh /srv/www/api/yii && chmod a+x /entrypoint.sh && update-alternatives --install /usr/bin/yii yii /srv/www/api/yii 0 # buildkit
VOLUME [/srv/www/api/htdocs]
ENTRYPOINT ["/entrypoint.sh"]

Labels

Key Value
org.opencontainers.image.revision 591a67cc8302178f600fa6573efa2fe4320a88e3
org.opencontainers.image.version 22.04
ru.error500.docker.image.source https://github.com/bitrixdock/bitrixdock
Details
Container
2026-10-25 04:33:26 +01:00
0
OCI / Docker
linux/amd64
349 MiB
Versions (56) View all
d98cb2736827 2026-11-04
develop 2026-11-03
3fa7000f5e02 2026-11-03
34a1e5655dd9 2026-11-03
11a80092df97 2026-11-01