diff --git a/docker/Dockerfile b/docker/Dockerfile index 1805401e61..86bdd240ee 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,48 +1,32 @@ -FROM php:8.1-fpm-alpine +FROM php:8.1-fpm-alpine3.18 WORKDIR "/usr/local/share/cypht" -RUN set -e \ - && apk add --no-cache \ - supervisor nginx composer sqlite freetype libpng libjpeg-turbo \ - php-session php-fileinfo php-dom php-xml libxml2-dev php-xmlwriter php-tokenizer \ - && apk add --no-cache --virtual .build-deps \ - ca-certificates \ - libpng-dev libjpeg-turbo-dev freetype-dev \ - && docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ \ - && docker-php-ext-install gd pdo pdo_mysql mysqli \ - && curl -sSL https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions -o - | sh -s \ - xdebug redis gnupg memcached \ - && composer self-update --2 \ - && apk del .build-deps \ - && ln -sf /dev/stdout /var/log/nginx/access.log \ - && ln -sf /dev/stderr /var/log/nginx/error.log \ - && ln -s /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini +RUN set -e; \ + apk add --no-cache supervisor nginx composer sqlite freetype libpng libjpeg-turbo \ + php-session php-fileinfo php-dom php-xml libxml2-dev php-xmlwriter php-tokenizer -COPY <