* set root user before change php options in workspace build

This commit is contained in:
2022-03-04 00:09:45 +03:00
parent 54a04feae7
commit 2d0fc4385d
2 changed files with 4 additions and 0 deletions

View File

@ -88,6 +88,8 @@ COPY ./minio/auth.json /home/laradock/.mc/config.json
# Tune opts:
###########################################################################
USER root
ARG PHP_OPT_SHORT_OPEN_TAG=Off
RUN sed -i "s/^short_open_tag = .*/short_open_tag = $PHP_OPT_SHORT_OPEN_TAG/g" /etc/php/${PHP_VERSION}/cli/php.ini

View File

@ -81,6 +81,8 @@ COPY ./minio/auth.json /home/laradock/.mc/config.json
# Tune opts:
###########################################################################
USER root
ARG PHP_OPT_MAX_EXECUTION_TIME=600
RUN sed -i "s/^max_execution_time = .*/max_execution_time = $PHP_OPT_MAX_EXECUTION_TIME/g" /etc/php/${PHP_VERSION}/cli/php.ini