blob: b46f098cff89a6cef97d16b7fbc9f7c45d5993d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
FROM startx/sv-apache
MAINTAINER Christophe LARUE <dev@startx.fr>
USER root
RUN dnf -y install php php-pecl-mongo php-cli php-pear \
php-gd php-mcrypt php-mysqlnd php-soap php-pecl-xdebug \
php-pdo php-process php-common php-mbstring \
php-bcmath php-pecl-zip php-php-gettext php-tcpdf \
php-tcpdf-dejavu-sans-fonts php-tidy \
&& dnf clean all
COPY httpd.conf /etc/httpd/conf.d/app.conf
COPY php.ini /etc/php.d/sx.ini
COPY run.sh /bin/
RUN chmod 775 /bin/run.sh && \
chmod ug+r /etc/httpd/conf.d/app.conf
COPY ./ /data/www
RUN rm -f /data/www/Dockerfile /data/www/httpd.conf /data/www/run.sh && \
chown -R apache:apache /data/www /data/logs && \
chmod ug+r -R /data/www
EXPOSE 80
EXPOSE 443
VOLUME ["/data/www","/data/logs"]
CMD ["/bin/run.sh"]
|