|
|
|
FROM solipsist01/rapidleech:latest |
|
|
|
|
|
RUN apt-get update && apt-get install -y nano |
|
|
|
|
|
RUN a2enmod headers |
|
|
|
|
|
RUN sed -i 's/80/7860/g' /etc/apache2/ports.conf && \ |
|
sed -i 's/80/7860/g' /etc/apache2/sites-available/000-default.conf |
|
|
|
|
|
RUN sed -i '/<\/VirtualHost>/i <IfModule mod_headers.c>\n Header always unset X-Frame-Options\n Header always set X-Frame-Options "ALLOWALL"\n</IfModule>' /etc/apache2/sites-available/000-default.conf |
|
|
|
|
|
RUN service apache2 restart |
|
|
|
|
|
RUN echo '<IfModule mod_headers.c>\n Header always unset X-Frame-Options\n Header always set X-Frame-Options "ALLOWALL"\n</IfModule>' >> /etc/apache2/apache2.conf |
|
|
|
|
|
EXPOSE 7860 |
|
|
|
|
|
CMD ["apache2-foreground"] |