File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,9 @@ cd ${DOCKER_DIRECTORY}
31
31
32
32
if [ $( uname) = " Darwin" ]
33
33
then
34
- docker-compose exec -u root php-fpm sed -i ' ' " s/xdebug.mode=.*/xdebug.mode=$1 /g" /usr/local/etc/php/php.ini
34
+ docker-compose exec php-fpm sed -i ' ' " s/xdebug.mode=.*/xdebug.mode=$1 /g" /usr/local/etc/php/php.ini
35
35
else
36
- docker-compose exec -u root php-fpm sed -i " s/xdebug.mode=.*/xdebug.mode=$1 /g" /usr/local/etc/php/php.ini
36
+ docker-compose exec php-fpm sed -i " s/xdebug.mode=.*/xdebug.mode=$1 /g" /usr/local/etc/php/php.ini
37
37
fi
38
38
39
39
echo " reloading php-fpm configuration"
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ RUN apk add --no-cache $PHPIZE_DEPS \
42
42
&& pecl install xdebug-3.0.4 \
43
43
&& docker-php-ext-enable xdebug
44
44
45
- COPY $DOCKER_IMAGE_FOLDER/php-fpm/php.ini /usr/local/etc/php/php.ini
45
+ COPY --chown $DOCKER_IMAGE_FOLDER/php-fpm/php.ini /usr/local/etc/php/php.ini
46
46
47
47
# Git
48
48
RUN apk add git
@@ -56,6 +56,8 @@ RUN adduser -S -G dockeruser -u $USER_ID -s /bin/ash dockeruser
56
56
57
57
USER dockeruser
58
58
59
+ RUN chwon dockeruser /usr/local/etc/php/php.ini
60
+
59
61
WORKDIR /home/dockeruser/magento
60
62
61
63
EXPOSE 9000
You can’t perform that action at this time.
0 commit comments