magnetico-web/docker/Dockerfile

12 lines
389 B
Docker

FROM php:7.4-fpm-alpine
ENV PHP_TIMEZONE Europe/Moscow
RUN apk update && \
apk add postgresql-dev libpq && \
docker-php-ext-configure pdo_pgsql && \
docker-php-ext-install -j$(nproc) pdo_pgsql && \
apk del postgresql-dev && \
mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" && \
echo "date.timezone = $PHP_TIMEZONE" > $PHP_INI_DIR/conf.d/timezone.ini