Skip to content

Commit 2719750

Browse files
committed
changed from codeclimate to qlty.sh
1 parent 4eede1e commit 2719750

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

app.Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.2-fpm
1+
FROM php:8.2-cli
22
RUN 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 \
1111
RUN pecl install xdebug
1212
#Enabling exts/installing exts with configurations
1313
RUN 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/
1614
RUN docker-php-ext-install gd
1715
#Get composer
1816
RUN 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

0 commit comments

Comments
 (0)