From d38e9a5c0a52aaa415b1b146e5f87e589ce6a72c Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Wed, 1 Feb 2023 11:38:14 +0100 Subject: [PATCH] add shell preference --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 1e2bb7b..915cdc1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -46,6 +46,12 @@ COPY --from=composer:2 /usr/bin/composer /usr/bin/composer ENV COMPOSER_ALLOW_SUPERUSER=1 ENV COMPOSER_MEMORY_LIMIT=-1 +# shell bash preference +RUN sed -i " \ + s|root:x:0:0:root:/root:/bin/ash|root:x:0:0:root:/root:/bin/bash|g; \ + s|postgres:x:70:70:PostgreSQL user:/var/lib/postgresql:/bin/sh|postgres:x:70:70:PostgreSQL user:/var/lib/postgresql:/bin/bash|g" \ + /etc/passwd + WORKDIR /var/www/app CMD ["php-fpm"]