|
|
@ -89,6 +89,17 @@ RUN if [ ${INSTALL_BCMATH} = true ]; then \ |
|
|
|
;fi |
|
|
|
|
|
|
|
########################################################################### |
|
|
|
# Locales: |
|
|
|
########################################################################### |
|
|
|
|
|
|
|
RUN apt --allow-releaseinfo-change update && \ |
|
|
|
apt install -y locales && \ |
|
|
|
sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \ |
|
|
|
sed -i 's/# ru_RU.UTF-8 UTF-8/ru_RU.UTF-8 UTF-8/' /etc/locale.gen && \ |
|
|
|
locale-gen |
|
|
|
|
|
|
|
|
|
|
|
########################################################################### |
|
|
|
# Prepend nginx 502 on showing errors: |
|
|
|
# @see https://stackoverflow.com/questions/55260221/laravel-php-7-3-nginx-502-upstream-prematurely-closed-fastcgi-stdout |
|
|
|
########################################################################### |
|
|
@ -117,14 +128,3 @@ RUN sed -i "s/^memory_limit = .*/memory_limit = $PHP_OPT_MEMORY_LIMIT/g" "$PHP_I |
|
|
|
|
|
|
|
ARG PHP_OPT_UPLOAD_MAX_FILESIZE=2M |
|
|
|
RUN sed -i "s/^upload_max_filesize = .*/upload_max_filesize = $PHP_OPT_UPLOAD_MAX_FILESIZE/g" "$PHP_INI_DIR/php.ini" |
|
|
|
|
|
|
|
|
|
|
|
########################################################################### |
|
|
|
# Locales: |
|
|
|
########################################################################### |
|
|
|
|
|
|
|
RUN apt update && \ |
|
|
|
apt install -y locales && \ |
|
|
|
sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \ |
|
|
|
sed -i 's/# ru_RU.UTF-8 UTF-8/ru_RU.UTF-8 UTF-8/' /etc/locale.gen && \ |
|
|
|
locale-gen |