Explorar o código

fix #395 adds phpunit path to non-root user's .bashrc

Didier Sampaolo %!s(int64=8) %!d(string=hai) anos
pai
achega
470994fc23
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      workspace/Dockerfile

+ 10 - 0
workspace/Dockerfile

@@ -234,6 +234,16 @@ RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = false ]; then \
     rm /etc/php/7.0/cli/conf.d/aerospike.ini \
 ;fi
 
+#####################################
+# Non-root user : PHPUnit path
+#####################################
+
+# add ./vendor/bin to non-root user's bashrc (needed for phpunit)
+USER laradock
+
+RUN echo "" >> ~/.bashrc && \
+    echo 'export PATH="/var/www/vendor/bin:$PATH"' >> ~/.bashrc
+
 #
 #--------------------------------------------------------------------------
 # Final Touch