Skip to content

Commit

Permalink
Correctly generate locales by default
Browse files Browse the repository at this point in the history
  • Loading branch information
stayallive committed Jul 18, 2023
1 parent fbcad37 commit ed8e303
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion 8.0.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,15 @@ RUN additionalPackages=" \
rm -f /usr/local/etc/php/conf.d/docker-php-ext-$ext.ini; \
done \
&& pecl install $peclModules \
&& locale-gen nl_NL nl_NL.UTF-8 \
&& docker-php-source delete \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $buildDeps \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Configure locales (make en_US and nl_NL available)
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
sed -i -e 's/# nl_NL.UTF-8 UTF-8/nl_NL.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales

# Install composer and put binary into $PATH
RUN curl -sS https://getcomposer.org/installer | php \
&& mv composer.phar /usr/local/bin/ \
Expand Down
6 changes: 5 additions & 1 deletion 8.1.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,15 @@ RUN additionalPackages=" \
rm -f /usr/local/etc/php/conf.d/docker-php-ext-$ext.ini; \
done \
&& pecl install $peclModules \
&& locale-gen nl_NL nl_NL.UTF-8 \
&& docker-php-source delete \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $buildDeps \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Configure locales (make en_US and nl_NL available)
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
sed -i -e 's/# nl_NL.UTF-8 UTF-8/nl_NL.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales

# Install composer and put binary into $PATH
RUN curl -sS https://getcomposer.org/installer | php \
&& mv composer.phar /usr/local/bin/ \
Expand Down
6 changes: 5 additions & 1 deletion 8.2.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,15 @@ RUN additionalPackages=" \
rm -f /usr/local/etc/php/conf.d/docker-php-ext-$ext.ini; \
done \
&& pecl install $peclModules \
&& locale-gen nl_NL nl_NL.UTF-8 \
&& docker-php-source delete \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $buildDeps \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Configure locales (make en_US and nl_NL available)
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
sed -i -e 's/# nl_NL.UTF-8 UTF-8/nl_NL.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales

# Install composer and put binary into $PATH
RUN curl -sS https://getcomposer.org/installer | php \
&& mv composer.phar /usr/local/bin/ \
Expand Down

0 comments on commit ed8e303

Please sign in to comment.