Skip to content
Snippets Groups Projects
Select Git revision
  • ca84cb1aa2d7f1353a764ca34ab7ea91d30a03a9
  • main default protected
  • export
  • 28-conversion-tests
  • extraction
  • exploration
  • exploration-old
  • 2-encoding-fix
  • main-old
9 results

Macao 1 et 2.bat

Blame
  • Dockerfile 2.35 KiB
    FROM php:8.1-apache
    
    USER root
    
    RUN apt-get update && apt-get -y upgrade
    
    RUN apt-get update && apt-get install -y \
        gnupg \
        wget \
        apt-transport-https \
        git \
        unzip \
        nodejs \
        npm \
        python2
    
    ENV PHP_MEMORY_LIMIT=512M
    
    #!/bin/bash
    # To add this repository please do:
    
    COPY addPhpRepository.sh .
    RUN bash addPhpRepository.sh
    
    RUN a2enmod rewrite headers proxy proxy_http
    
    RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq \
        libcurl4-openssl-dev \
        libfreetype6-dev \
        libjpeg62-turbo-dev \
        libonig-dev \
        libpng-dev \
        libpng-dev \
        libzip-dev \
        zlib1g-dev \
        libxml2-dev \
        libicu-dev \
        netcat
    
    RUN docker-php-ext-configure gd --with-freetype --with-jpeg
    
    RUN docker-php-ext-install -j$(nproc) \
        mbstring \
        gd \
        pdo_mysql \
        mysqli \
        zip
    
    # Install opcache extension for PHP accelerator
    RUN docker-php-ext-install opcache \
        && docker-php-ext-enable opcache \
        && rm -rf /var/lib/apt/lists/* \
        && apt-get autoremove -y
    
    # Install internationalization extension
    RUN BUILD_DEPS="g++ libicu-dev" && \
        apt-get update && \
        DEBIAN_FRONTEND=noninteractive apt-get install -yq \
        $BUILD_DEPS \
    	&& docker-php-ext-configure intl \
        && docker-php-ext-install intl \
        && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $BUILD_DEPS \
        && rm -rf /var/lib/apt/lists/*
    
    RUN echo 'date.timezone = "UTC"' >> /usr/local/etc/php/php.ini
    RUN echo 'opcache.max_accelerated_files = 20000' >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
    
    
    RUN echo short_open_tag=off >> /usr/local/etc/php/php.ini
    
    # Install composer
    COPY install_composer.sh /bin
    RUN chmod u+x /bin/install_composer.sh
    RUN /bin/install_composer.sh
    
    # Install xdebug
    RUN pecl install xdebug \
        && docker-php-ext-enable xdebug
    
    COPY xdebug.ini $PHP_INI_DIR/conf.d/
    
    # Composer is global
    RUN mv composer.phar /usr/local/bin/composer && curl -sS https://get.symfony.com/cli/installer | bash && cp /root/.symfony5/bin/symfony /usr/local/bin/symfony
    
    ENV COMPOSER_MEMORY_LIMIT=-1
    
    RUN mkdir -p /sites/memorekall/www/web_dev
    
    WORKDIR /sites/memorekall/www/web_dev
    
    COPY symfony.conf /etc/apache2/sites-enabled/000-default.conf
    
    COPY entrypoint.sh /entrypoint.sh
    
    COPY uploads.ini $PHP_INI_DIR/conf.d/
    
    ENTRYPOINT ["bash","/entrypoint.sh"]