File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1- FROM php:8.2-fpm
1+ FROM php:8.2-cli
22RUN apt-get update \
33 && apt-get install -y unzip curl libzip-dev zlib1g-dev libpng-dev libjpeg-dev \
44 libfreetype6-dev git mariadb-client libmagickwand-dev openssh-client \
@@ -11,9 +11,13 @@ RUN docker-php-ext-install pdo_mysql zip \
1111RUN pecl install xdebug
1212# Enabling exts/installing exts with configurations
1313RUN docker-php-ext-enable xdebug
14- # RUN docker-php-ext-enable imagick
15- # RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
1614RUN docker-php-ext-install gd
1715# Get composer
1816RUN curl -sS https://getcomposer.org/installer \
1917 | php -- --install-dir=/usr/local/bin --filename=composer
18+ # add user
19+ RUN adduser --disabled-password --gecos "" appuser
20+ RUN chown -R appuser:appuser /var/www/html
21+
22+ # change to secured user
23+ USER appuser
You can’t perform that action at this time.
0 commit comments