Support for additional locales in PHP-FPM (#1976)
This commit is contained in:
1 parent
e0d7229e95
commit
1286b7ef06
4 files changed
+33
No files matched your search
@@ -585,6 +585,22 @@ RUN if [ ${INSTALL_YAML} = true ]; then \
|
||||
docker-php-ext-enable yaml \
|
||||
;fi
|
||||
|
||||
###########################################################################
|
||||
# Install additional locales:
|
||||
###########################################################################
|
||||
|
||||
ARG INSTALL_ADDITIONAL_LOCALES=false
|
||||
ARG ADDITIONAL_LOCALES
|
||||
|
||||
RUN if [ ${INSTALL_ADDITIONAL_LOCALES} = true ]; then \
|
||||
apt-get install -y locales \
|
||||
&& echo '' >> /usr/share/locale/locale.alias \
|
||||
&& temp="${ADDITIONAL_LOCALES%\"}" \
|
||||
&& temp="${temp#\"}" \
|
||||
&& for i in ${temp}; do sed -i "/$i/s/^#//g" /etc/locale.gen; done \
|
||||
&& locale-gen \
|
||||
;fi
|
||||
|
||||
###########################################################################
|
||||
# Check PHP version:
|
||||
###########################################################################
|
||||
|
||||
Reference in new issue
Block a user