From 789dea0b1bf48da39c171dd3f082a183242e1799 Mon Sep 17 00:00:00 2001 From: Arnaud RITTI Date: Mon, 2 Dec 2024 11:56:47 +0100 Subject: [PATCH] =?UTF-8?q?ci:=20mettre=20=C3=A0=20jour=20le=20Dockerfile?= =?UTF-8?q?=20pour=20ajouter=20un=20UID=20personnalis=C3=A9=20=C3=A0=20l'u?= =?UTF-8?q?tilisateur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- php/Dockerfile.frankenphp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/php/Dockerfile.frankenphp b/php/Dockerfile.frankenphp index 057c388..0b6f1c3 100755 --- a/php/Dockerfile.frankenphp +++ b/php/Dockerfile.frankenphp @@ -9,12 +9,11 @@ LABEL org.opencontainers.image.title="PHP ${PHP_VERSION} - FrankenPHP" LABEL org.opencontainers.image.description="PHP ${PHP_VERSION} Docker image with FrankenPHP" ARG USER="www-data" - -ARG USER=www-data +ARG UID="1000" RUN \ # Use "adduser -D ${USER}" for alpine based distros - useradd -D ${USER}; \ + useradd -u ${UID} -s /bin/bash ${USER} --no-create-home --home /var/www/html; \ # Add additional capability to bind to port 80 and 443 setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/frankenphp; \ # Give write access to /data/caddy and /config/caddy