apache2.yml 791 B

1234567891011121314151617181920
  1. FROM postfix
  2. RUN apt update
  3. RUN apt install apache2 -y
  4. RUN apt install patch -y
  5. RUN echo "IncludeOptional /home/httpd/*/conf/apache2.*.conf" >> /etc/apache2/apache2.conf
  6. RUN a2enmod ssl
  7. RUN a2enmod expires
  8. RUN a2enmod headers
  9. RUN a2enmod cache
  10. RUN a2enmod rewrite
  11. RUN apt-get -y install lsb-release ca-certificates curl
  12. RUN curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
  13. RUN dpkg -i /tmp/debsuryorg-archive-keyring.deb
  14. RUN sh -c 'echo "deb [signed-by=/usr/share/keyrings/debsuryorg-archive-keyring.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
  15. RUN apt-get update
  16. COPY directory.patch /etc/apache2/directory.patch
  17. RUN patch /etc/apache2/apache2.conf < /etc/apache2/directory.patch