blob: 60985dfac8ba15658cfc0792537c4229b5b085e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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 application content
COPY app/* /var/www/html/
COPY httpd.conf /etc/httpd/conf.d/sx.conf
COPY php.ini /etc/php.d/sx.ini
RUN chmod ug+r /var/www/html/* \
&& chown -R apache:apache /var/www/html /var/log/httpd
EXPOSE 80
EXPOSE 443
VOLUME ["/var/www/html", "/var/log/httpd"]
CMD ["/sx/httpd_run.sh"]
|