framadate : hadolint Containerfile
This commit is contained in:
parent
7b67d2722d
commit
c5c66efbd7
|
@ -2,11 +2,15 @@ FROM docker.io/library/php:8-apache
|
||||||
|
|
||||||
ARG version
|
ARG version
|
||||||
|
|
||||||
RUN apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq zip unzip git zlib1g-dev libicu-dev g++ default-mysql-client git locales
|
RUN apt-get -y update \
|
||||||
RUN sed -i '/fr_FR.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
|
&& DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y -qq zip unzip git zlib1g-dev libicu-dev g++ default-mysql-client git locales \
|
||||||
RUN docker-php-ext-install intl && docker-php-ext-install pdo_mysql
|
&& apt-get clean \
|
||||||
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
RUN a2enmod rewrite
|
&& sed -i '/fr_FR.UTF-8/s/^# //g' /etc/locale.gen \
|
||||||
|
&& locale-gen \
|
||||||
|
&& docker-php-ext-install intl \
|
||||||
|
&& docker-php-ext-install pdo_mysql \
|
||||||
|
&& a2enmod rewrite
|
||||||
|
|
||||||
COPY --from=docker.io/library/composer:2.2 /usr/bin/composer /usr/bin/composer
|
COPY --from=docker.io/library/composer:2.2 /usr/bin/composer /usr/bin/composer
|
||||||
|
|
||||||
|
@ -22,13 +26,10 @@ ENV COMPOSER_ALLOW_SUPERUSER 0
|
||||||
|
|
||||||
WORKDIR /var/www/framadate
|
WORKDIR /var/www/framadate
|
||||||
|
|
||||||
RUN git clone -b $version --depth=1 https://framagit.org/framasoft/framadate/framadate.git .
|
RUN git clone -b $version --depth=1 https://framagit.org/framasoft/framadate/framadate.git . \
|
||||||
RUN sed -i -e 's|"smarty/smarty": "^4.0",|"smarty/smarty": "^4.3",|' /var/www/framadate/composer.json
|
&& sed -i -e 's|"smarty/smarty": "^4.0",|"smarty/smarty": "^4.3",|' /var/www/framadate/composer.json \
|
||||||
RUN chown -R 33:33 .
|
&& chown -R 33:33 . \
|
||||||
|
&& if [ "$ENV" = "dev" ] ; then echo Using PHP production mode ; else echo Using PHP development mode && echo "error_reporting = E_ERROR | E_WARNING | E_PARSE\ndisplay_errors = On" > /usr/local/etc/php/conf.d/php.ini ; fi \
|
||||||
# Some Apache and PHP configuration
|
&& rm /etc/apache2/sites-enabled/000-default.conf
|
||||||
RUN if [ "$ENV" = "dev" ] ; then echo Using PHP production mode ; else echo Using PHP development mode && echo "error_reporting = E_ERROR | E_WARNING | E_PARSE\ndisplay_errors = On" > /usr/local/etc/php/conf.d/php.ini ; fi
|
|
||||||
|
|
||||||
RUN rm /etc/apache2/sites-enabled/000-default.conf
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
ENTRYPOINT ["entrypoint"]
|
ENTRYPOINT ["entrypoint"]
|
||||||
|
|
Loading…
Reference in a new issue