Skip to content

Commit

Permalink
Adding all locales to Docker (meeting-room-booking-system#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 and villeristi committed Jun 6, 2024
1 parent e91f342 commit c0dd5eb
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

RUN localedef -i en_GB -c -f UTF-8 -A /usr/share/locale/locale.alias en_GB.UTF-8 && \
localedef -i fi_FI -c -f UTF-8 -A /usr/share/locale/locale.alias fi_FI.UTF-8
Expand Down
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 c0dd5eb

Please sign in to comment.