unfinished

This commit is contained in:
Alexey Skobkin 2022-07-04 01:25:46 +03:00
parent 0699ab947a
commit 3ce42f8950
No known key found for this signature in database
GPG key ID: 5D5CEF6F221278E7

View file

@ -1,11 +1,17 @@
FROM php:7.4-fpm-alpine FROM php:8.1-fpm-alpine
ENV PHP_TIMEZONE Europe/Moscow ENV PHP_TIMEZONE Europe/Moscow
RUN apk update && \ RUN apk update && \
apk add postgresql-dev libpq && \ apk add postgresql-dev libpq && \
docker-php-ext-configure igbinary && \
docker-php-ext-configure intl && \
docker-php-ext-configure pdo_pgsql && \ docker-php-ext-configure pdo_pgsql && \
docker-php-ext-install -j$(nproc) igbinary && \
docker-php-ext-install -j$(nproc) instl && \
docker-php-ext-install -j$(nproc) pdo_pgsql && \ docker-php-ext-install -j$(nproc) pdo_pgsql && \
pecl install redis-5.3.7 && \
docker-php-ext-enable redis && \
apk del postgresql-dev && \ apk del postgresql-dev && \
mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" && \ mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" && \
echo "date.timezone = $PHP_TIMEZONE" > $PHP_INI_DIR/conf.d/timezone.ini echo "date.timezone = $PHP_TIMEZONE" > $PHP_INI_DIR/conf.d/timezone.ini