Skip to content

Commit f6d9ac6

Browse files
authored
Merge pull request laradock#401 from dsampaolo/fix-phpunit-path-missing
fix laradock#395 adds phpunit path to non-root user's .bashrc
2 parents 1b05dfd + 470994f commit f6d9ac6

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)