forked from supersoaker/docker-lamp-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (32 loc) · 1.57 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM php:7.1-apache
# or php:7.0-apache, php:5.6-apache @see https://github.com/docker-library/php
# install imagick // @see https://gist.github.com/tristanlins/4c1da2508f0326a042aa
#RUN apt-get update \
# && apt-get install -y \
# libmagickwand-dev \
# && rm -rf /var/lib/apt/lists/* \
# && pecl install imagick-beta \
# && echo "extension=imagick.so" > /usr/local/etc/php/conf.d/ext-imagick.ini \
# && apt-get remove -y \
# libmagickwand-dev \
# && apt-get install -y \
# libmagickwand-6.q16-2 \
# && apt-get autoremove -y
RUN openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/ssl-cert-snakeoil.key -out /etc/ssl/certs/ssl-cert-snakeoil.pem -subj "/C=AT/ST=Vienna/L=Vienna/O=Security/OU=Development/CN=example.com"
RUN a2enmod ssl
RUN a2enmod rewrite
RUN docker-php-ext-install mysqli pdo pdo_mysql
# enable mail sending for php with ssmtp
#RUN apt-get update && \
# apt-get install -y ssmtp && \
# apt-get clean && \
# rm -r /var/lib/apt/lists/* && \
# echo "FromLineOverride=YES" >> /etc/ssmtp/ssmtp.conf && \
# echo 'sendmail_path = "/usr/sbin/ssmtp -t"' > /usr/local/etc/php/conf.d/mail.ini
# enable mail sending for php with sendmail
#RUN apt-get update && apt-get upgrade -y sendmail && rm -rf /var/lib/apt/lists/* && \
# echo 'sendmail_path = "/usr/sbin/sendmail -t -i"' > /usr/local/etc/php/conf.d/mail.ini
#RUN echo "$(hostname)" >> /etc/mail/relay-domains
#RUN m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
#RUN echo "127.0.0.1 noreply.domain.com $(hostname)" >> /etc/hosts
#RUN service sendmail restart