docker-projects/webserver/Dockerfile.fedora

12 lines
409 B
Docker

FROM fedora:38
RUN dnf install httpd -y
COPY index.html.fedora /var/www/html/index.html
RUN mkdir -p /var/run/httpd &&\
chown apache:apache /var/run/httpd
ENV APACHE_RUN_DIR /var/run/httpd
ENV APACHE_PID_FILE /var/run/httpd.pid
ENV APACHE_RUN_USER apache
ENV APACHE_RUN_GROUP apache
ENV APACHE_LOG_DIR /var/log/httpd
ENV APACHE_SERVER_NAME localhost
CMD ["/usr/sbin/httpd", "-D", "FOREGROUND"]