forked from v-je/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PHP.Dockerfile
22 lines (15 loc) · 759 Bytes
/
PHP.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM php:fpm-alpine
RUN apk add --no-cache $PHPIZE_DEPS
RUN pecl install xdebug
RUN docker-php-ext-enable xdebug
RUN docker-php-ext-install pdo pdo_mysql
# Configure maildev
RUN apk update
RUN apk add ssmtp
RUN echo "hostname=v.je" > /etc/ssmtp/ssmtp.conf
RUN echo "[email protected]>" >> /etc/ssmtp/ssmtp.conf
RUN echo "mailhub=maildev:1025" >> /etc/ssmtp/ssmtp.conf
RUN echo "sendmail_path=sendmail -i -t" >> /usr/local/etc/php/conf.d/php-sendmail.ini
RUN sed -i '/#!\/bin\/sh/aecho "$(hostname -i)\t$(hostname) $(hostname).localhost" >> /etc/hosts' /usr/local/bin/docker-php-entrypoint
RUN echo "post_max_size=5000M" > /usr/local/etc/php/conf.d/php-uploadsize.ini
RUN echo "upload_max_filesize=5000M" >> /usr/local/etc/php/conf.d/php-uploadsize.ini