-
Notifications
You must be signed in to change notification settings - Fork 139
Open
Labels
bug confirmedBug reproduced and qualifiedBug reproduced and qualified
Milestone
Description
Expected Behavior
Some stuff in PHP depends heavily on locales, so I'd expect locales to be supported by a general-purpose PHP container.
Current Behavior
I need to create a custom Dockerfile to install and install the neccessary locales:
RUN { echo en_GB.UTF-8 de_DE.UTF-8; echo C.UTF-8; } | DEBIAN_FRONTEND=teletype dpkg-reconfigure locales
ENV PHP_INI_INTL__DEFAULT_LOCALE=de_DE.UTF-8
Possible Solution
Add an environment variable LOCALES="en_GB.UTF-8 de_DE.UTF-8"
that generates the locales on container start. Setting PHP_INI_INTL__DEFAULT_LOCALE can be an independent option.
Context
I want to use ProcessWire, and am trying to create as few custom Docker images as possible.
Your Environment
- Version used: 7.4-v3-apache
- Operating System and version: Debian 10 Buster
- Link to your project: N/A
creffect and mbrodala
Metadata
Metadata
Assignees
Labels
bug confirmedBug reproduced and qualifiedBug reproduced and qualified