Commit e41e2392 authored by Cresson Remi's avatar Cresson Remi
Browse files

OKD ready

parent 5b34f0fa
No related merge requests found
Pipeline #61809 passed with stage
in 1 minute and 6 seconds
Showing with 6 additions and 9 deletions
+6 -9
FROM ubuntu/apache2
RUN sed -i 's#<Directory /var/www/>#<Directory /var/www/>\n Header set Access-Control-Allow-Origin "*"#g' /etc/apache2/apache2.conf
RUN a2enmod headers
RUN apt update \
&& apt upgrade -y \
&& apt install -y libcap2-bin procps \
&& setcap 'cap_net_bind_service=+ep' /usr/sbin/apache2 \
&& chown www-data:www-data /var/log/apache2
USER www-data
FROM httpd:2.4
RUN sed -i 's#<Directory /var/www/>#<Directory /var/www/>\n Header set Access-Control-Allow-Origin "*"#g' /usr/local/apache2/conf/httpd.conf
RUN sed -i 's#Listen 80#Listen 8080#g' /usr/local/apache2/conf/httpd.conf
RUN chgrp -R 0 /usr/local/apache2/logs && \
chmod -R g+rwX /usr/local/apache2/logs
USER 1001
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment