default user for workspace is laradock, so that owner of log file when running php artisan command doesn't change (#1875)

This commit is contained in:
Lan Phan 2018-11-22 07:10:09 +07:00 committed by Shao Yu-Lung (Allen)
parent afdf2661bd
commit 156d124db0

View File

@ -889,12 +889,12 @@ RUN php -v | head -n 1 | grep -q "PHP ${LARADOCK_PHP_VERSION}."
#--------------------------------------------------------------------------
#
USER root
# Clean up
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
rm /var/log/lastlog /var/log/faillog
USER laradock
# Set default work directory
WORKDIR /var/www