diff --git a/Dockerfile b/Dockerfile index 0505099..cf05c83 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,23 @@ FROM php:8.4-fpm@sha256:5148d67c6a67e00736c7a1be2e3b5287e370fd64d24f7777f5e39bf4c45b9175 + +MAINTAINER Petr Novotný +LABEL org.opencontainers.image.source=https://github.com/biodiversity-cz/php-fpm-noroot-socket +LABEL org.opencontainers.image.description="no root UNIX socket PHP/FPM" + +RUN apt-get update && apt-get dist-upgrade -y && \ + apt-get install -y --no-install-recommends \ + libpq-dev \ + apt-get autoclean -y && \ + apt-get remove -y wget && \ + apt-get autoremove -y && \ + rm -rf /var/lib/apt/lists/* /var/lib/log/* /tmp/* /var/tmp/* + +RUN docker-php-ext-install pdo && \ + docker-php-ext-install intl && \ + docker-php-ext-install pdo_pgsql && \ + docker-php-ext-install pgsql && \ + docker-php-ext-install opcache + RUN useradd -u 1000 -ms /bin/bash www && \ usermod -aG www-data www && \ mkdir /sock && \ diff --git a/README.md b/README.md index 9354771..cdb68fb 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ # php-fpm-noroot-socket -PHP-FPM unprivileged image with shared socket. More info at the [Nginx container](https://github.com/krkabol/nginx-noroot-fpmSocket) . +PHP-FPM unprivileged image with shared socket. More info at the [Nginx container](https://github.com/biodiversity-cz/nginx-noroot-fpmSocket) .