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

View File

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