| 1234567891011121314151617181920 |
- FROM postfix
- RUN apt update
- RUN apt install apache2 -y
- RUN apt install patch -y
- RUN echo "IncludeOptional /home/httpd/*/conf/apache2.*.conf" >> /etc/apache2/apache2.conf
- RUN a2enmod ssl
- RUN a2enmod expires
- RUN a2enmod headers
- RUN a2enmod cache
- RUN a2enmod rewrite
- RUN apt-get -y install lsb-release ca-certificates curl
- RUN curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
- RUN dpkg -i /tmp/debsuryorg-archive-keyring.deb
- 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'
- RUN apt-get update
- COPY directory.patch /etc/apache2/directory.patch
- RUN patch /etc/apache2/apache2.conf < /etc/apache2/directory.patch
|