-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (18 loc) · 915 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ubuntu:xenial
MAINTAINER André Cianfarani <[email protected]>
RUN apt-get update && \
apt-get install -y php-common php-cli php-fpm php-mysql php-curl php-gd php-intl php-xmlrpc php-zip php-dom php-imagick php-xsl php-mcrypt && \
apt-get install -y ssmtp && \
apt-get clean && \
echo "FromLineOverride=YES" >> /etc/ssmtp/ssmtp.conf && \
echo "root=postmaster" >> /etc/ssmtp/ssmtp.conf && \
echo "mailhub=mail" >> /etc/ssmtp/ssmtp.conf && \
echo "AuthUser=web" >> /etc/ssmtp/ssmtp.conf && \
echo "AuthPass=web" >> /etc/ssmtp/ssmtp.conf && \
echo "hostname=acti.fr" >> /etc/ssmtp/ssmtp.conf && \
echo "root:web:mail" >> /etc/ssmtp/revaliases && \
echo 'sendmail_path = "/usr/sbin/ssmtp -t"' >> /etc/php/7.0/fpm/php.ini && \
sed -i "s|listen = /run/php/php7.0-fpm.sock|listen = 9000|ig" /etc/php/7.0/fpm/pool.d/www.conf
RUN service php7.0-fpm start
CMD ["php-fpm7.0", "-F"]
EXPOSE 9000