docker/apaches/Dockerfile

32 lines
1.0 KiB
Docker
Raw Normal View History

from php:7.4.33-apache
2021-05-09 22:07:17 +02:00
2021-11-10 16:25:47 +01:00
RUN apt-get update && apt-get install -y \
git \
2024-02-13 13:05:48 +01:00
# locales \
# locales-all \
# gettext \
libicu-dev\
&& docker-php-ext-configure intl \
&& docker-php-ext-install intl \
2021-11-10 16:25:47 +01:00
&& rm -rf /var/lib/apt/lists/*
2024-02-13 13:05:48 +01:00
#RUN sed -i -e 's/# fr_FR.UTF-8 UTF-8/fr_FR.UTF-8 UTF-8/' /etc/locale.gen && \
# locale-gen
# dpkg-reconfigure --frontend=noninteractive locales
#ENV LANG fr_FR.UTF-8
#ENV LANGUAGE fr_FR:fr
#ENV GDM_LANG fr_FR.UTF-8
#ENV LC_ALL fr_FR.UTF-8
RUN printf "[safe]\n\tdirectory = /var/www\n" > /etc/gitconfig
2021-11-10 16:25:47 +01:00
RUN a2enmod remoteip rewrite \
&& echo "RemoteIPHeader X-Forwarded-For" > /etc/apache2/conf-available/remoteip.conf \
&& a2enconf remoteip \
&& sed -i -r 's/^ServerTokens .*/ServerTokens Prod/g' /etc/apache2/conf-available/security.conf \
&& sed -i -r 's/^ServerSignature .*/ServerSignature Off/g' /etc/apache2/conf-available/security.conf \
&& sed -i -E 's/^LogFormat "%h(.*)/LogFormat "%a\1/g' /etc/apache2/apache2.conf \
&& echo "expose_php = Off" > /usr/local/etc/php/conf.d/php_version.ini
2021-05-09 22:07:17 +02:00
CMD ["apache2-foreground"]