-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split locales generation out from php extensions installation
When trying to modify the php installed extensions in the images it's a pain to have to wait for all the locales to be generated. So, the changes here just split that responsibility to another, separated layer that will be cached before playing with extensions.
- Loading branch information
Showing
3 changed files
with
29 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
echo "Installing apt dependencies" | ||
|
||
# Packages for installing locales. | ||
RUNTIME_LOCALES="locales" | ||
|
||
apt-get update | ||
apt-get install -y --no-install-recommends apt-transport-https \ | ||
$RUNTIME_LOCALES | ||
|
||
echo "Installing UTF-8 locales" | ||
|
||
# Generate the locales configuration for all possible UTF-8 locales. | ||
grep UTF-8 /usr/share/i18n/SUPPORTED > /etc/locale.gen | ||
locale-gen | ||
|
||
# Keep our image size down.. | ||
apt-get autoremove -y | ||
apt-get clean | ||
rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters