mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 19:49:20 +03:00
Add docker support for development.
This commit is contained in:
parent
6e20d5fccc
commit
866b0ddc6d
11 changed files with 1088 additions and 709 deletions
27
.docker/php/Dockerfile
Normal file
27
.docker/php/Dockerfile
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
FROM php:7.1-fpm
|
||||
|
||||
RUN apt-get update
|
||||
|
||||
RUN apt-get install -y \
|
||||
git unzip wget zip curl mlocate \
|
||||
libmcrypt-dev libicu-dev libpcre3-dev libicu-dev \
|
||||
build-essential chrpath libssl-dev \
|
||||
libxft-dev libfreetype6 libfreetype6-dev \
|
||||
libpng-dev libjpeg62-turbo-dev \
|
||||
libfontconfig1 libfontconfig1-dev libzip-dev
|
||||
|
||||
RUN docker-php-ext-configure intl && \
|
||||
docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ && \
|
||||
docker-php-ext-install opcache pdo_mysql mcrypt zip intl gd
|
||||
|
||||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||
|
||||
RUN curl --location --output /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar && chmod +x /usr/local/bin/phpunit
|
||||
|
||||
RUN apt-get -y autoremove && apt-get clean
|
||||
|
||||
RUN sed -i '/^;catch_workers_output/ccatch_workers_output = yes' '/usr/local/etc/php-fpm.d/www.conf'
|
||||
|
||||
EXPOSE 9000
|
||||
|
||||
CMD ["php-fpm"]
|
||||
8
.docker/php/rainloop.ini
Normal file
8
.docker/php/rainloop.ini
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
date.timezone = UTC
|
||||
upload_max_filesize = 1G
|
||||
post_max_size = 1G
|
||||
|
||||
# log_errors = On
|
||||
# display_errors = On
|
||||
# error_reporting = E_ALL
|
||||
# error_log = /dev/stderr
|
||||
Loading…
Add table
Add a link
Reference in a new issue