updated
This commit is contained in:
parent
c9aed24443
commit
f81f50ffe3
1 changed files with 10 additions and 3 deletions
|
|
@ -3,11 +3,11 @@ FROM debian:bookworm-slim
|
||||||
ARG PHP_VERSION=7.4
|
ARG PHP_VERSION=7.4
|
||||||
ARG WKHTML=""
|
ARG WKHTML=""
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update -y
|
||||||
RUN apt-get upgrade -y
|
RUN apt-get upgrade -y
|
||||||
|
|
||||||
# persistent / runtime deps
|
# persistent / runtime deps
|
||||||
RUN apt-get install -y --no-install-recommends ca-certificates curl apt-transport-https lsb-release
|
RUN apt-get install -y --no-install-recommends ca-certificates curl apt-transport-https lsb-release imagemagick
|
||||||
|
|
||||||
RUN set -eux; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 1777 /var/www/html
|
RUN set -eux; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 1777 /var/www/html
|
||||||
|
|
||||||
|
|
@ -77,12 +77,19 @@ RUN ln -s /etc/php/${PHP_VERSION}/apache2/conf.d /etc/php/conf.d
|
||||||
# apache site and modules
|
# apache site and modules
|
||||||
COPY apache/site.conf /etc/apache2/sites-available/site.conf
|
COPY apache/site.conf /etc/apache2/sites-available/site.conf
|
||||||
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
|
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
|
||||||
|
|
||||||
|
RUN a2dismod mpm_event
|
||||||
RUN a2dissite 000-default
|
RUN a2dissite 000-default
|
||||||
RUN a2dismod mpm_event && a2enmod mpm_prefork # Apache + PHP requires preforking Apache for best results
|
|
||||||
|
RUN a2enmod mpm_prefork # Apache + PHP requires pre-forking Apache for best results
|
||||||
RUN a2enmod rewrite
|
RUN a2enmod rewrite
|
||||||
RUN a2enmod remoteip
|
RUN a2enmod remoteip
|
||||||
|
RUN a2enmod setenvif
|
||||||
RUN a2ensite site
|
RUN a2ensite site
|
||||||
|
|
||||||
|
# upgrade system a second time
|
||||||
|
RUN apt-get upgrade -y
|
||||||
|
|
||||||
# email relay
|
# email relay
|
||||||
RUN apt-get install -y --no-install-recommends msmtp msmtp-mta
|
RUN apt-get install -y --no-install-recommends msmtp msmtp-mta
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue