|
@ -259,6 +259,8 @@ RUN if [ ${INSTALL_FSWATCH} = true ]; then \ |
|
|
# Node / NVM: |
|
|
# Node / NVM: |
|
|
########################################################################### |
|
|
########################################################################### |
|
|
|
|
|
|
|
|
|
|
|
USER laradock |
|
|
|
|
|
|
|
|
# Check if NVM needs to be installed |
|
|
# Check if NVM needs to be installed |
|
|
ARG INSTALL_NODE=false |
|
|
ARG INSTALL_NODE=false |
|
|
ENV INSTALL_NODE ${INSTALL_NODE} |
|
|
ENV INSTALL_NODE ${INSTALL_NODE} |
|
@ -310,8 +312,10 @@ RUN if [ ${INSTALL_NODE} = true ]; then \ |
|
|
USER root |
|
|
USER root |
|
|
|
|
|
|
|
|
RUN if [ ${INSTALL_NODE} = true ]; then \ |
|
|
RUN if [ ${INSTALL_NODE} = true ]; then \ |
|
|
|
|
|
cp -R /home/laradock/.nvm /root/ && \ |
|
|
|
|
|
chown -R root:root /root/.nvm && \ |
|
|
echo "" >> ~/.bashrc && \ |
|
|
echo "" >> ~/.bashrc && \ |
|
|
echo 'export NVM_DIR="/home/laradock/.nvm"' >> ~/.bashrc && \ |
|
|
|
|
|
|
|
|
echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.bashrc && \ |
|
|
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc \ |
|
|
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc \ |
|
|
;fi |
|
|
;fi |
|
|
|
|
|
|
|
|