info update
[dockerfiles.git] / httpd-php56 / Dockerfile
blob6a6e0c06f83543ec99241698626b8e34bc990469
1 FROM alpine:3.7 
3 MAINTAINER Ricardson Williams <ricardsonwilliams@gmail.com>
5 RUN \
6         apk --no-cache add \
7         apache2 \
8         openssh \
9         php5 \
10         php5-intl \
11         php5-mysql \
12         php5-xml \
13         php5-gd \
14         php5-mcrypt \
15         php5-pdo \
16         php5-cli \
17         php5-opcache \
18         php5-soap \
19         && mkdir -p /run/apache2 \
20         && sed -ri 's/#ServerName www.example.com:80/ServerName localhost:80/g' /etc/apache2/httpd.conf \
21         && sed -ri 's/AllowOverride None/AllowOverride All/g' /etc/apache2/httpd.conf \
22         && sed -ri -e 's!^(\s*CustomLog)\s+\S+!\1 /proc/self/fd/1!g' \
23                 -e 's!^(\s*ErrorLog)\s+\S+!\1 /proc/self/fd/2!g' \
24                 /etc/apache2/httpd.conf \
25         && sed -i s/#PermitRootLogin.*/PermitRootLogin\ yes/ /etc/ssh/sshd_config \
26         && echo "root:root" | chpasswd
28 VOLUME /srv
29 WORKDIR /srv
31 ADD index.php /var/www/localhost/htdocs/index.php
33 EXPOSE 80
35 COPY scripts / 
37 ENTRYPOINT ["/entrypoint.sh"]