├── .gitignore ├── Dockerfile ├── LICENSE ├── README.md └── config └── custom.ini /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .DS_Store -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM php:7.1-fpm 2 | 3 | COPY config/custom.ini /usr/local/etc/php/conf.d/ 4 | 5 | RUN apt-get update && apt-get install -y zlib1g-dev libicu-dev libpq-dev \ 6 | && docker-php-ext-install opcache \ 7 | && docker-php-ext-install intl \ 8 | && docker-php-ext-install mbstring \ 9 | && docker-php-ext-install pdo_mysql \ 10 | && docker-php-ext-install pdo_pgsql \ 11 | ## APCu 12 | && pecl install apcu-5.1.5 \ 13 | && docker-php-ext-enable apcu 14 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Maestrooo 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # eb-docker-php7 2 | Docker image to be used with Elastic Beanstalk 3 | -------------------------------------------------------------------------------- /config/custom.ini: -------------------------------------------------------------------------------- 1 | ; General settings 2 | 3 | date.timezone = "UTC" 4 | 5 | ; Error reporting optimized for production (http://www.phptherightway.com/#error_reporting) 6 | 7 | display_errors = Off 8 | display_startup_errors = Off 9 | error_reporting = E_ALL 10 | log_errors = On 11 | error_log = /var/log/php-app/error.log 12 | 13 | ; Opcache settings (best on https://www.scalingphpbook.com/best-zend-opcache-settings-tuning-config/) 14 | 15 | opcache.revalidate_freq = 0 16 | opcache.max_accelerated_files = 7963 17 | opcache.memory_consumption = 96 18 | opcache.interned_strings_buffer = 16 19 | opcache.fast_shutdown = 1 20 | --------------------------------------------------------------------------------