| ADD alpine-minirootfs-3.19.9-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| RUN /bin/sh -c apk add --no-cache apache2 php82-apache2 php82 php82-openssl php82-session php82-simplexml sqlite # buildkit |
| RUN /bin/sh -c sed -i 's#/var/www/localhost/htdocs#/var/www/html#g' /etc/apache2/httpd.conf && sed -i '/<Directory "\/var\/www\/html">/,/<\/Directory>/ s/AllowOverride None/AllowOverride All/' /etc/apache2/httpd.conf && sed -i 's/#LoadModule rewrite_module/LoadModule rewrite_module/g' /etc/apache2/httpd.conf # buildkit |
| WORKDIR /var/www/html |
| COPY . /var/www/html/ # buildkit |
| RUN /bin/sh -c mkdir -p /var/www/secure && chown apache:apache /var/www/secure # buildkit |
| RUN /bin/sh -c chown -R apache:apache /var/www/html && find /var/www/html -type d -exec chmod 755 {} \; && find /var/www/html -type f -exec chmod 644 {} \; # buildkit |
| EXPOSE [80/tcp] |
| CMD ["httpd" "-D" "FOREGROUND"] |