From 30deeffeb7930e9dd7af28601768a541c86d32e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Jombart?= Date: Sat, 20 Jul 2024 16:56:25 +0200 Subject: [PATCH] Test: docker --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 31978a4..4308254 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ -# Use the specified base image + +#FROM php:8.1.22-fpm-alpine3.16 AS base FROM php:8.1.28-fpm-alpine3.18 AS base # Install necessary packages @@ -26,7 +27,11 @@ RUN mkdir -p /run/nginx && \ mkdir -p /var/www/html && \ chown -R www-data:www-data /var/www/html -# Set the working directory +# Add non root user to the tty group, so we can write to stdout and stderr +RUN addgroup www-data tty + +# Set the working directory and user +USER www-data WORKDIR /var/www/html # Add a test PHP file