/
AleksWork
/
diary_plants
Обзор
Документация
Войти
/
AleksWork
/
diary_plants
Код
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
docker/php-fpm/Dockerfile
66 строк
2 KB
AlexeySerov
Add moveToGroup method to other entities
08 май 2026, 14:45
08 май 2026, 14:45
b77f1c1
Код
Авторство
О чём код?
FROM php:8.4-fpm-alpine USER root # Install dev dependencies RUN apk update \ && apk upgrade --available \ && apk add --virtual build-deps \ autoconf \ build-base \ icu-dev \ libevent-dev \ openssl-dev \ zlib-dev \ libzip \ libzip-dev \ zlib \ zlib-dev \ bzip2 \ git \ libpng \ libpng-dev \ libjpeg \ libjpeg-turbo-dev \ libwebp-dev \ freetype \ freetype-dev \ postgresql-dev \ linux-headers \ curl \ wget \ bash # Install Composer RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer # Install PHP extensions RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ RUN docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) \ intl \ gd \ bcmath \ pcntl \ pdo_pgsql \ sockets \ zip \ opcache RUN pecl channel-update pecl.php.net \ && (pecl list | grep -q redis || pecl install -o -f redis) \ && (pecl list | grep -q redis || pecl install -o -f event) \ && pecl install -o -f \ && rm -rf /tmp/pear \ && echo "extension=redis.so" > /usr/local/etc/php/conf.d/redis.ini \ && echo "extension=event.so" > /usr/local/etc/php/conf.d/event.ini RUN apk add --no-cache $PHPIZE_DEPS \ && pecl install xdebug \ && docker-php-ext-enable xdebug WORKDIR /app RUN mkdir -p var/cache var/log var/sessions \ && chown -R www-data:www-data var USER www-data