| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- FROM php:7.4-apache-buster
- LABEL Maintainer="kerstin Sieren <kerstin@sieren.biz>" \
- Description="Lightweight container with Apache & PHP-FPM based on Debian Buster."
- RUN apt-get update && \
- apt-get upgrade -y && \
- apt-get install -y --no-install-recommends \
- wget git \
- # Configure PHP
- libxml2-dev libfreetype6-dev \
- libjpeg62-turbo-dev \
- libmcrypt-dev \
- libpng-dev \
- libpq-dev \
- libzip-dev \
- zlib1g-dev \
- # Install required 3rd party tools
- graphicsmagick && \
- # Configure extensions
- docker-php-ext-configure gd --with-libdir=/usr/include/ --with-jpeg --with-freetype && \
- docker-php-ext-install -j$(nproc) mysqli soap gd zip opcache intl pgsql pdo_pgsql && \
- echo 'always_populate_raw_post_data = -1\nmax_execution_time = 240\nmax_input_vars = 1500\nupload_max_filesize = 32M\npost_max_size = 32M' > /usr/local/etc/php/conf.d/typo3.ini && \
- # Configure Apache as needed
- a2enmod rewrite && \
- apt-get clean && \
- apt-get -y purge \
- libxml2-dev libfreetype6-dev \
- libjpeg62-turbo-dev \
- libmcrypt-dev \
- libpng-dev \
- libzip-dev \
- zlib1g-dev && \
- rm -rf /var/lib/apt/lists/* /usr/src/* \
- RUN curl -s https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
- # Switch to use a non-root user from here on
- #USER nobody
- # Add application
- WORKDIR /var/www/html
- # Expose the port apache is reachable on
- EXPOSE 80
|