File tree Expand file tree Collapse file tree 3 files changed +6
-19
lines changed Expand file tree Collapse file tree 3 files changed +6
-19
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,8 @@ services:
17
17
context : ./docker/app
18
18
args :
19
19
- XDEBUG
20
+ - CONTAINER_USER
20
21
working_dir : /var/www/app
21
- environment :
22
- - CONTAINER_USER
23
22
24
23
app :
25
24
extends : app_base
Original file line number Diff line number Diff line change 1
1
FROM php:7-fpm
2
2
3
- RUN apt-get -y -qq update && \
4
- apt-get -y -qq install --no-install-recommends gosu git unzip libpng-dev libjpeg-dev libfreetype6-dev libicu-dev libzip-dev libxml2-dev libxslt-dev libwebp-dev && \
3
+ RUN apt-get -y update && \
4
+ apt-get -y install --no-install-recommends git unzip libpng-dev libjpeg-dev libfreetype6-dev libicu-dev libzip-dev libxml2-dev libxslt-dev libwebp-dev && \
5
5
docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr && \
6
6
docker-php-ext-install -j$(nproc) pdo_mysql bcmath gd intl opcache zip soap xsl && \
7
7
pecl install apcu && \
@@ -17,13 +17,12 @@ RUN curl -Lo /usr/bin/composer https://getcomposer.org/composer-stable.phar && \
17
17
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash && \
18
18
apt-get install -y nodejs
19
19
20
- RUN useradd -m app
20
+ ARG CONTAINER_USER
21
+ RUN useradd -m app -u $CONTAINER_USER
21
22
22
23
ARG XDEBUG
23
24
24
25
RUN if [ $XDEBUG ]; then pecl install xdebug && docker-php-ext-enable xdebug; fi
25
26
26
- COPY ./docker-entrypoint.sh /
27
- ENTRYPOINT ["/docker-entrypoint.sh" ]
28
-
27
+ USER app
29
28
CMD ["php-fpm" , "-F" , "-R" ]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments