Skip to content

Commit

Permalink
Fix locales
Browse files Browse the repository at this point in the history
  • Loading branch information
dorianim committed Oct 12, 2021
1 parent 421df9e commit 1c60475
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ ARG MODERN_MRBS_THEME_RELEASE=v0.2.0

LABEL maintainer="Dorian Zedler <[email protected]>"

ENV MUSL_LOCPATH="/usr/share/i18n/locales/musl"
RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/v3.13/community musl-locales musl-locales-lang \
&& cd "$MUSL_LOCPATH" \
&& for i in *.UTF-8; do \
i1=${i%%.UTF-8}; \
i2=${i1/_/-}; \
i3=${i/_/-}; \
cp -a "$i" "$i1"; \
cp -a "$i" "$i2"; \
cp -a "$i" "$i3"; \
done

RUN \
echo "**** install packages ****" && \
apk update && \
Expand All @@ -25,6 +37,7 @@ RUN \
php7-phar \
php7-simplexml \
php7-tokenizer \
php7-intl \
tar && \
echo "**** configure php-fpm ****" && \
sed -i 's/;clear_env = no/clear_env = no/g' /etc/php7/php-fpm.d/www.conf && \
Expand Down

0 comments on commit 1c60475

Please sign in to comment.