Skip to content

Commit f9653d6

Browse files
committed
chore: use non-root user for PHP 32bits image
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
1 parent 95255bc commit f9653d6

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

php8.4-32bit/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,14 @@ RUN apt-get update && apt-get install -y wget apt-transport-https lsb-release ca
1111
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*
1212

1313
RUN phpenmod zip intl gd systemd
14+
RUN phpdismod xdebug
15+
16+
# Don't use root
17+
RUN groupadd -g 1001 runner &&useradd -m -u 1001 -g runner runner
18+
USER runner
19+
1420
RUN curl -O -L https://getcomposer.org/download/2.9.2/composer.phar \
1521
&& chmod +x composer.phar \
1622
&& mv composer.phar /usr/local/bin/composer
1723

18-
RUN phpdismod xdebug
1924
ADD nextcloud.ini /etc/php/8.4/cli/conf.d/nextcloud.ini

0 commit comments

Comments
 (0)