-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding all locales to Docker (#3673)
* Fixed 'Server failed to set locale to' error by adding all locales * Update Dockerfile * Update Dockerfile
- Loading branch information
1 parent
cf51347
commit 178223d
Showing
2 changed files
with
2 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |