13 lines
823 B
Docker
13 lines
823 B
Docker
FROM dunglas/frankenphp:1.12.7-php8.3-bookworm AS php
|
|
WORKDIR /app
|
|
RUN apt-get update
|
|
RUN apt-get install -y rsync curl apt-utils unzip poppler-utils default-mysql-client imagemagick
|
|
RUN apt-get install -y --no-install-recommends texlive-base texlive-latex-base texlive-pictures texlive-latex-extra texlive-lang-german texlive-plain-generic texlive-fonts-recommended texlive-fonts-extra texlive-extra-utils
|
|
RUN install-php-extensions pdo_mysql curl exif intl mbstring pcntl zip redis imagick gd
|
|
RUN usermod -s /bin/bash www-data
|
|
RUN echo 'memory_limit = 2G' >> /usr/local/etc/php/conf.d/99-custom-php-memlimit.ini
|
|
|
|
# Allow FrankenPHP to bind to port 80 and write its state when running as www-data
|
|
RUN setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/frankenphp \
|
|
&& chown -R www-data:www-data /data/caddy /config/caddy
|