add alias support for laradock user (#572)

add the same alias support as root for the laradock user, inlined the multiple RUN commands
This commit is contained in:
Ivo 2017-01-26 15:18:09 +01:00 committed by Bo-Yi Wu
parent a94f08920a
commit 43b9515b61
1 changed files with 11 additions and 5 deletions

View File

@ -85,13 +85,19 @@ RUN chmod -R 644 /etc/cron.d
#####################################
# User Aliases
#####################################
USER root
USER laradock
COPY ./aliases.sh /home/laradock/aliases.sh
RUN echo "" >> ~/.bashrc
RUN echo "# Load Custom Aliases" >> ~/.bashrc
RUN echo "source /home/laradock/aliases.sh" >> ~/.bashrc
RUN echo "" >> ~/.bashrc
RUN echo "" >> ~/.bashrc && \
echo "# Load Custom Aliases" >> ~/.bashrc && \
echo "source /home/laradock/aliases.sh" >> ~/.bashrc && \
echo "" >> ~/.bashrc
USER root
RUN echo "" >> ~/.bashrc && \
echo "# Load Custom Aliases" >> ~/.bashrc && \
echo "source /home/laradock/aliases.sh" >> ~/.bashrc && \
echo "" >> ~/.bashrc
#####################################
# xDebug: