Skip to content

Feature Request: Install locales through environment variables #212

Description

@moqmar

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug confirmedBug reproduced and qualified

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions