Skip to content

Commit 470994f

Browse files
author
Didier Sampaolo
committed
fix laradock#395 adds phpunit path to non-root user's .bashrc
1 parent 1b05dfd commit 470994f

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

workspace/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,16 @@ RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = false ]; then \
234234
rm /etc/php/7.0/cli/conf.d/aerospike.ini \
235235
;fi
236236

237+
#####################################
238+
# Non-root user : PHPUnit path
239+
#####################################
240+
241+
# add ./vendor/bin to non-root user's bashrc (needed for phpunit)
242+
USER laradock
243+
244+
RUN echo "" >> ~/.bashrc && \
245+
echo 'export PATH="/var/www/vendor/bin:$PATH"' >> ~/.bashrc
246+
237247
#
238248
#--------------------------------------------------------------------------
239249
# Final Touch

0 commit comments

Comments
 (0)