use yii\helpers\Html;
Yii::$container->set('yii\widgets\LinkPager', [
'maxButtonCount' => 3,
'prevPageLabel' => Html::img(Yii::$app->urlManager->createUrl('img/svg/icon-chevrons-left-gray.svg'), ['alt' => 'назад']),
'nextPageLabel' => Html::img(Yii::$app->urlManager->createUrl('img/svg/icon-chevrons-right-gray.svg'), ['alt' => 'вперёд']),
'firstPageLabel' => Html::img(Yii::$app->urlManager->createUrl('img/svg/icon-skip-back-gray.svg'), ['alt' => 'начало']),
'lastPageLabel' => Html::img(Yii::$app->urlManager->createUrl('img/svg/icon-skip-forward-gray.svg'), ['alt' => 'конец']),
]);
// ; cPanel-generated php ini directives, do not edit
// ; Manual editing of this file may result in unexpected behavior.
// ; To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
// ; For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
allow_url_fopen = On
allow_url_include = On
display_errors = Off
enable_dl = Off
file_uploads = On
max_execution_time = 30
max_input_time = 60
max_input_vars = 1000
memory_limit = 128M
post_max_size = 100M
session.gc_maxlifetime = 1440
session.save_path = "/var/www/sessions"
upload_max_filesize = 100M
zlib.output_compression = Off
FROM php:7.3-fpm
# Set working directory
WORKDIR /var/www
# Install dependencies
RUN apt-get update && apt-get install -y \
build-essential \
default-mysql-client \
libpng-dev \
libjpeg62-turbo-dev \
libfreetype6-dev \
libzip-dev \
libicu-dev \
locales \
zip \
jpegoptim optipng pngquant gifsicle \
vim \
unzip \
git \
curl
# Clear cache
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
# Install extensions
RUN docker-php-ext-configure zip --with-libzip
RUN docker-php-ext-install mysqli pdo_mysql mbstring exif pcntl zip
RUN docker-php-ext-configure gd --with-gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-png-dir=/usr/include/
RUN docker-php-ext-install gd
RUN docker-php-ext-configure intl
RUN docker-php-ext-install intl
# Install composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
# Add user for laravel application
RUN groupadd -g 1000 www
RUN useradd -u 1000 -ms /bin/bash -g www www
# Copy existing application directory contents
COPY . /var/www
# Copy existing application directory permissions
COPY --chown=www:www . /var/www
# Change current user to www
USER www
# Expose port 9000 and start php-fpm server
EXPOSE 9000
CMD ["php-fpm"]