Docker > use project-related binaries globally

This commit is contained in:
Meritoo
2018-06-14 11:50:45 +02:00
parent 57a78d1299
commit fb24bc2ff1
2 changed files with 6 additions and 1 deletions

View File

@@ -5,3 +5,4 @@ Common and useful classes, methods, exceptions etc.
1. Add this changelog 1. Add this changelog
2. Reorganize documentation & update [Readme](README.md) 2. Reorganize documentation & update [Readme](README.md)
3. Docker > use project-related binaries globally

View File

@@ -121,5 +121,9 @@ RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
# #
RUN sed -i 's/^# export/export/g; \ RUN sed -i 's/^# export/export/g; \
s/^# alias/alias/g;' ~/.bashrc \ s/^# alias/alias/g;' ~/.bashrc \
&& echo "\n"'export PATH=/project/vendor/bin:$PATH'"\n" >> ~/.bashrc \
&& echo 'COLUMNS=200'"\n" >> ~/.bashrc && echo 'COLUMNS=200'"\n" >> ~/.bashrc
#
# Use project-related binaries globally
#
ENV PATH="/project/vendor/bin:${PATH}"