Skip to content

Commit

Permalink
Adding all locales to Docker (#3673)
Browse files Browse the repository at this point in the history
* Fixed 'Server failed to set locale to' error by adding all locales

* Update Dockerfile

* Update Dockerfile
  • Loading branch information
ma-wenqian authored May 25, 2024
1 parent cf51347 commit 178223d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
FROM php:8.2-apache

RUN a2enmod rewrite
RUN apt-get update && apt-get install -y libicu72 libicu-dev
RUN apt-get update && apt-get install -y libicu72 libicu-dev locales-all
RUN docker-php-ext-install mysqli pdo pdo_mysql intl
RUN apt-get update && apt-get install -y locales && \
sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen && \
sed -i 's/^# *\(en_GB.UTF-8\)/\1/' /etc/locale.gen && \
locale-gen

COPY web/ /var/www/html/
COPY docker-config.inc.php /var/www/html/config.inc.php
4 changes: 1 addition & 3 deletions docker_app/php/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
FROM php:7.3-apache

RUN a2enmod rewrite
RUN docker-php-ext-install mysqli

#COPY docker_app/php.ini/ $PHP_INI_DIR/conf.d/
RUN apt-get update && apt-get install -y locales-all
RUN docker-php-ext-install mysqli pdo pdo_mysql

0 comments on commit 178223d

Please sign in to comment.