blob: 10a6e1fa573d0b3b54904d455591e0b58fca5cad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
FROM startx/fedora
MAINTAINER Christophe LARUE <dev@startx.fr>
USER root
# Install packages and set up httpd
RUN yum -y install httpd \
&& yum clean all \
&& mkdir -p /var/www/html \
&& mkdir -p /var/log/httpd
# Copy startx toolkit
COPY sx/* /sx/
COPY httpd.conf /etc/httpd/conf.d/sx.conf
# Copy html content
COPY html/* /var/www/html/
RUN chmod ug+rx /sx/httpd* \
&& 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"]
|