Skip to content

Commit

Permalink
Fix localisation issues
Browse files Browse the repository at this point in the history
It appears that Alpine Linux does not come with full localisation
support by default. Any reasonable information on this is actually
pretty sparse, so it took me more than an hour to fix this.

I initially tried to use `musl-locales` and `musl-locales-lang`,
however, while these provide partial localisations (for Dutch) PHP
would not accept it no matter what. Even moving the files around
didn't fix the issue.

Finally, I saw docker-library/php#1302
which explained that `icu-data-full` is not installed by default,
as it is approximately 30MB (which is quite large for Alpine).
  • Loading branch information
tomudding committed Aug 16, 2022
1 parent 80b304f commit a1f94fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker/web/development/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ RUN apk add --no-cache --virtual .build-deps \
&& apk add --no-cache --virtual .runtime-deps \
git \
ghostscript \
icu-data-full \
imagemagick \
nano \
nodejs \
Expand Down
1 change: 1 addition & 0 deletions docker/web/production/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ RUN apk add --no-cache --virtual .build-deps \
&& apk add --no-cache --virtual .runtime-deps \
git \
ghostscript \
icu-data-full \
imagemagick \
openssh \
poppler-utils \
Expand Down

0 comments on commit a1f94fc

Please sign in to comment.