File tree Expand file tree Collapse file tree 3 files changed +29
-7
lines changed Expand file tree Collapse file tree 3 files changed +29
-7
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,12 @@ RUN apt-get update && apt-get install -y \
2424# For an example of php80-rc5 near complete, using pickle instead of pear/pecl, look to:
2525# https://github.com/stronk7/moodle-php-apache/tree/8.0-buster-pickle-version
2626
27- # Setup the required extensions .
27+ # Generate all the UTF-8 locales .
2828ARG DEBIAN_FRONTEND=noninteractive
29+ ADD root/tmp/setup/locales-gen.sh /tmp/setup/locales-gen.sh
30+ RUN /tmp/setup/locales-gen.sh
31+
32+ # Setup the required extensions.
2933ADD root/tmp/setup/php-extensions.sh /tmp/setup/php-extensions.sh
3034RUN /tmp/setup/php-extensions.sh
3135
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -e
4+
5+ echo " Installing apt dependencies"
6+
7+ # Packages for installing locales.
8+ RUNTIME_LOCALES=" locales"
9+
10+ apt-get update
11+ apt-get install -y --no-install-recommends apt-transport-https \
12+ $RUNTIME_LOCALES
13+
14+ echo " Installing UTF-8 locales"
15+
16+ # Generate the locales configuration for all possible UTF-8 locales.
17+ grep UTF-8 /usr/share/i18n/SUPPORTED > /etc/locale.gen
18+ locale-gen
19+
20+ # Keep our image size down..
21+ apt-get autoremove -y
22+ apt-get clean
23+ rm -rf /var/lib/apt/lists/*
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ PACKAGES_MYMARIA="libmariadb3"
1717
1818# Packages for other Moodle runtime dependenices.
1919PACKAGES_RUNTIME=" ghostscript libaio1 libcurl4 libgss3 libicu67 libmcrypt-dev libxml2 libxslt1.1 \
20- libzip-dev locales sassc unzip zip"
20+ libzip-dev sassc unzip zip"
2121
2222# Packages for Memcached.
2323PACKAGES_MEMCACHED=" libmemcached11 libmemcachedutil2"
@@ -34,11 +34,6 @@ apt-get install -y --no-install-recommends apt-transport-https \
3434 $PACKAGES_MEMCACHED \
3535 $PACKAGES_LDAP
3636
37- # Generate the locales configuration for all possible UTF-8 locales.
38- echo ' Generating locales..'
39- grep UTF-8 /usr/share/i18n/SUPPORTED > /etc/locale.gen
40- locale-gen
41-
4237echo " Installing php extensions"
4338
4439# ZIP
You can’t perform that action at this time.
0 commit comments